Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-23

NullPointerException in JaasSecurityManager.getPrincipal()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.GA
    • 1.x
    • JBossSX
    • None
    • Low

      JaasSecurityManager.getPrincipal() does not check for empty domainCache. This method is called, for example, when JAAS is used from web layer.

      Trivial fix, add in the start of the method:
      if( domainCache == null )
      return principal;

            anil.saldhana Anil Saldanha (Inactive)
            cyberax_jira Alex Besogonov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: