[jboss-jira] [JBoss JIRA] (WFLY-2306) NPE in UndertowDeploymentInfoService.authMethod
Bernard Labno (JIRA)
jira-events at lists.jboss.org
Tue Oct 15 08:14:35 EDT 2013
Bernard Labno created WFLY-2306:
-----------------------------------
Summary: NPE in UndertowDeploymentInfoService.authMethod
Key: WFLY-2306
URL: https://issues.jboss.org/browse/WFLY-2306
Project: WildFly
Issue Type: Bug
Affects Versions: 8.0.0.Beta1
Reporter: Bernard Labno
If I do not define auth method in web.xml then NPE happens during deployment (Yoda would have saved you)
web.xml:
{code:xml}
<login-config>
<realm-name>RestBase</realm-name>
</login-config>
{code}
Stacktrace:
{code}
java.lang.NullPointerException
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.authMethod(UndertowDeploymentInfoService.java:758)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:693)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:214)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
{code}
Related source code:
{code:java}
private static String authMethod(String configuredMethod) {
// TODO - Feels like a candidate for an enum but will hold off until configuration of custom methods and chaining is
// defined.
if (configuredMethod.equals("CLIENT-CERT")) { //Speak Yoda here please
return HttpServletRequest.CLIENT_CERT_AUTH;
}
return configuredMethod;
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list