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

SecurityUtils.getSubject() throws org.apache.geode.security.AuthenticationFailedException intermittently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3.2
    • None
    • None

    Description

      When our application starts, we set the vm static SecurityManager using

      SecurityUtils.setSecurityManager(xyz);
      

      But sometimes when we do login using:

      Subject currentUser = SecurityUtils.getSubject();
      curentUser.login(tokent)
      

      we occasionally get the following exception:

      org.apache.geode.security.AuthenticationFailedException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.  This is an invalid application configuration.
      

      We suspect that it's because the vm static SecurityManager is not volatile and not visible to the login thread....

      Attachments

        Activity

          People

            Unassigned Unassigned
            jinmeiliao Jinmei Liao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: