https://issues.apache.org/bugzilla/show_bug.cgi?id=48516

           Summary: NullPointerException in JNDIRealm
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: kevin.a.cona...@gmail.com


Created an attachment (id=24824)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24824)
Patch to fix NPE

There is a NullPointerException being thrown when the server attempts to look
up a non-existent user in JNDIRealm.

Specifically, the getUser(DirContext, String) method will return null if the
user is not found.  However, getPrincipal(DirContext, String) will not check to
see if the result from getUser() is null.

I'm attaching a patch from the 6.0.20 tag but this should also be backported to
the 5.5.x branch as well because the issue exists there.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to