https://issues.apache.org/bugzilla/show_bug.cgi?id=56246
Bug ID: 56246
Summary: NPE in MemoryRealm when authenticating unknown user
Product: Tomcat 7
Version: 7.0.52
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
When using the embedded tomcat with a MemoryRealm for basic authentication, a
request containing an unknown username leads to a NullPointerException.
java.lang.NullPointerException
org.apache.catalina.realm.MemoryRealm.authenticate(MemoryRealm.java:143)
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:164)
....
MemoryRealm.authenticate get the principal via principals.get(username).
If the user is not known, he result is null.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]