[jboss-jira] [JBoss JIRA] (WFCORE-2942) Adding credential-reference with non-exist alias to authentication-configuration through CLI results to NPE
Ondrej Lukas (JIRA)
issues at jboss.org
Fri Jun 9 08:57:00 EDT 2017
Ondrej Lukas created WFCORE-2942:
------------------------------------
Summary: Adding credential-reference with non-exist alias to authentication-configuration through CLI results to NPE
Key: WFCORE-2942
URL: https://issues.jboss.org/browse/WFCORE-2942
Project: WildFly Core
Issue Type: Bug
Components: Security
Reporter: Ondrej Lukas
Assignee: Darran Lofthouse
Priority: Critical
When Elytron authentication-configuration is added with credential-reference with non-exist alias through CLI then it results to NullPointerException.
See:
{code}
/subsystem=elytron/credential-store=cs:add(location=cs.jceks,create=true,relative-to=jboss.server.data.dir,credential-reference={clear-text=pass})
/subsystem=elytron/credential-store=cs:add-alias(alias=exist,secret-value=pass)
/subsystem=elytron/authentication-configuration=cfg1:add(credential-reference={store=cs,alias=exist})
{"outcome" => "success"}
/subsystem=elytron/authentication-configuration=cfg2:add(credential-reference={store=cs,alias=nonexist})
{
"outcome" => "failed",
"failure-description" => {"WFLYCTL0080: Failed services" => {"org.wildfly.security.authentication-configuration.cfg2" => "Failed to start service
Caused by: java.lang.IllegalStateException: java.lang.NullPointerException
Caused by: java.lang.NullPointerException"}},
"rolled-back" => true
}
{code}
NPE in server log:
{code}
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service org.wildfly.security.authentication-configuration.cfg2: org.jboss.msc.service.StartException in service org.wildfly.security.authentication-configuration.cfg2: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: java.lang.NullPointerException
at org.wildfly.extension.elytron.AuthenticationClientDefinitions$1.lambda$getValueSupplier$17(AuthenticationClientDefinitions.java:364)
at java.util.function.Function.lambda$andThen$5(Function.java:88)
at org.wildfly.extension.elytron.AuthenticationClientDefinitions$1.lambda$getValueSupplier$18(AuthenticationClientDefinitions.java:370)
at org.wildfly.extension.elytron.TrivialService.start(TrivialService.java:53)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
... 3 more
Caused by: java.lang.NullPointerException
at org.wildfly.extension.elytron.AuthenticationClientDefinitions$1.lambda$getValueSupplier$17(AuthenticationClientDefinitions.java:359)
... 8 more
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list