Uploaded image for project: 'Spring Security'
  1. Spring Security
  2. SEC-2507

WebExpressionVoter - supported secured object class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.1.6, 3.2.2
    • Component/s: Web
    • Labels:
      None

      Description

      It's probably a typo - WebExpressionVoter has the following method:

      public boolean supports(Class<?> clazz) {
          return clazz.isAssignableFrom(FilterInvocation.class);
      }
      

      I think it should be:

      public boolean supports(Class<?> clazz) {
          return FilterInvocation.class.isAssignableFrom(clazz);
      }
      

      because WebExpressionVoter should support subclasses of FilterInvocation.

        Attachments

          Activity

            People

            Assignee:
            rwinch Rob Winch
            Reporter:
            mateusz.wenus Mateusz Wenus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: