Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-130

ShiroFilter does not work with proxied security manager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • Web
    • None

    Description

      The ShiroFilter.isHttpSessions() method does an instanceof check on the security manager, checking whether it's an instance of DefaultWebSecurityManager.

      This doesn't work when the security manager is a JDK proxy to a DefaultWebSecurityManager because the proxy implements the SecurityManager interface, which doesn't have the isHttpSessions() method.

      Perhaps we should have a WebSecurityManager interface with the isHttpSessions() method defined on it?

      Attachments

        Activity

          People

            pledbrook Peter Ledbrook
            pledbrook Peter Ledbrook
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: