https://issues.apache.org/bugzilla/show_bug.cgi?id=51277
Bug #: 51277
Summary: NPE during the form authentication when
form-login-config is missed
Product: Tomcat 7
Version: 7.0.12
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 27075
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27075
Log from a browser
Hi!
There is NPE during the form authentication when form-login-config is missed
I missed form-login-config by mistake (converted it from the BASIC):
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
Unfortunately I get NPE (see below and attached).
I do understand that Form authentication can not work, but I think NPE is bad
output.
I think better is HTTP 500.
Best regards,
Michael
java.lang.NullPointerException
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:373)
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:267)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:539)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
--
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: [email protected]
For additional commands, e-mail: [email protected]