[jboss-jira] [JBoss JIRA] (WFLY-2306) NPE in UndertowDeploymentInfoService.authMethod

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Mon Nov 18 10:45:07 EST 2013


     [ https://issues.jboss.org/browse/WFLY-2306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andre Dietisheim reassigned WFLY-2306:
--------------------------------------

    Assignee: Stuart Douglas

    
> NPE in UndertowDeploymentInfoService.authMethod
> -----------------------------------------------
>
>                 Key: WFLY-2306
>                 URL: https://issues.jboss.org/browse/WFLY-2306
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 8.0.0.Beta1
>            Reporter: Bernard Labno
>            Assignee: Stuart Douglas
>
> 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