Ondrej Lukas created WFLY-7294:
----------------------------------
Summary: Deployment fails when unreachable LDAP is used for Elytron LDAP
authentication
Key: WFLY-7294
URL:
https://issues.jboss.org/browse/WFLY-7294
Project: WildFly
Issue Type: Bug
Components: Security
Reporter: Ondrej Lukas
Assignee: Darran Lofthouse
Priority: Blocker
In case when LDAP server used by Elytron dir-context is unreachable (e.g. LDAP is down or
some network failures occur) or when dir-context is incorrectly set (e.g. used password is
wrong) then application which uses this dir-context cannot be deployed. Deployment fails
and confusing exception occurs in server log.
We request blocker since it causes that deployments (which have already been successfully
deployed) can unexpectedly fail when server is restarted/reloaded in time when LDAP server
is unreachable.
Deployment fails with following exception in server log:
{code}
ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 61) MSC000001: Failed to
start service jboss.undertow.deployment.default-server.default-host./print-roles:
org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./print-roles:
java.lang.RuntimeException: java.lang.IllegalStateException: WFLYUT0085: The required
mechanism 'BASIC' is not available from the HttpAuthenticationFactory.
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: WFLYUT0085: The
required mechanism 'BASIC' is not available from the HttpAuthenticationFactory.
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:236)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
... 6 more
Caused by: java.lang.IllegalStateException: WFLYUT0085: The required mechanism
'BASIC' is not available from the HttpAuthenticationFactory.
at
org.wildfly.extension.undertow.ApplicationSecurityDomainDefinition$ApplicationSecurityDomainService.lambda$initialSecurityHandler$4(ApplicationSecurityDomainDefinition.java:349)
at java.lang.Iterable.forEach(Iterable.java:75)
at
org.wildfly.extension.undertow.ApplicationSecurityDomainDefinition$ApplicationSecurityDomainService.initialSecurityHandler(ApplicationSecurityDomainDefinition.java:346)
at
org.wildfly.extension.undertow.ApplicationSecurityDomainDefinition$ApplicationSecurityDomainService.lambda$applyElytronSecurity$0(ApplicationSecurityDomainDefinition.java:294)
at
io.undertow.servlet.core.DeploymentManagerImpl.setupSecurityHandlers(DeploymentManagerImpl.java:402)
at
io.undertow.servlet.core.DeploymentManagerImpl.access$600(DeploymentManagerImpl.java:119)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:206)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171)
at
io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at
io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1671)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1671)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1671)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1671)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234)
... 8 more
ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013:
Operation ("deploy") failed - address: ([("deployment" =>
"print-roles.war")]) - failure description: {
"WFLYCTL0080: Failed services" =>
{"jboss.undertow.deployment.default-server.default-host./print-roles" =>
"org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./print-roles:
java.lang.RuntimeException: java.lang.IllegalStateException: WFLYUT0085: The required
mechanism 'BASIC' is not available from the HttpAuthenticationFactory.
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: WFLYUT0085:
The required mechanism 'BASIC' is not available from the
HttpAuthenticationFactory.
Caused by: java.lang.IllegalStateException: WFLYUT0085: The required mechanism
'BASIC' is not available from the HttpAuthenticationFactory."},
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.undertow.deployment.default-server.default-host./print-roles"],
"WFLYCTL0180: Services with missing/unavailable dependencies" =>
undefined
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)