You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/01/11 14:42:02 UTC

DO NOT REPLY [Bug 48516] New: NullPointerException in JNDIRealm

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.conaway@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48516] NullPointerException in JNDIRealm

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48516

--- Comment #2 from Mark Thomas <ma...@apache.org> 2010-01-12 14:46:02 GMT ---
Many thanks for the patch. It has been applied to trunk and proposed for 6.0.x
and 5.5.x.

-- 
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48516] NullPointerException in JNDIRealm

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48516

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Catalina                    |Catalina
            Version|6.0.20                      |5.5.28
            Product|Tomcat 6                    |Tomcat 5
   Target Milestone|default                     |---

--- Comment #3 from Mark Thomas <ma...@apache.org> 2010-01-13 02:38:20 GMT ---
Thanks again for the patch. It has been applied to 6.0.x and will be included
in 6.0.23 onwards.

-- 
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48516] NullPointerException in JNDIRealm

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48516

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Konstantin Kolinko <kn...@gmail.com> 2010-03-03 16:51:54 UTC ---
Applied to 5.5, will be in 5.5.29 onwards. Thank you.

-- 
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48516] NullPointerException in JNDIRealm

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48516

kevinconaway <ke...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #24824|0                           |1
        is obsolete|                            |

--- Comment #1 from kevinconaway <ke...@gmail.com> 2010-01-11 05:46:00 UTC ---
Created an attachment (id=24825)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24825)
Patch to fix NPE

-- 
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org