[jboss-jira] [JBoss JIRA] (WFLY-12019) Cannot remove a undertow server resource at one time

Bartosz Spyrko (Jira) issues at jboss.org
Fri May 3 10:19:00 EDT 2019


    [ https://issues.jboss.org/browse/WFLY-12019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13729569#comment-13729569 ] 

Bartosz Spyrko commented on WFLY-12019:
---------------------------------------

[~pferraro] I'm running into a problem with SSO manager installer service. When I remove the sso setting from host config using _allow-resource-service-restart=true_ and try to add it again without reload I'm get a failure:
{noformat}
[standalone at localhost:9990 /] /subsystem=undertow/server=default-server/host=test-host/setting=single-sign-on:add
{"outcome" => "success"}
[standalone at localhost:9990 /] /subsystem=undertow/server=default-server/host=test-host/setting=single-sign-on:remove{allow-resource-service-restart=true}
{"outcome" => "success"}
[standalone at localhost:9990 /] /subsystem=undertow/server=default-server/host=test-host/setting=single-sign-on:add
{
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0158: Operation handler failed: org.jboss.msc.service.
DuplicateServiceException: Service jboss.undertow.server.default-server.test-host.single-si
gn-on.manager.installer is already registered",
    "rolled-back" => true
}
{noformat}

It looks like the installer service is created every time _DistributableSingleSignOnManagerServiceConfigurator_ is build, but never removed.

Would it be OK to remove the service in _HostSingleSignOnServiceHandler_ together with _jboss.undertow.server.default-server.test-host.single-sign-on.manager_ service? Or is there a better way to ensure it's removed?

> Cannot remove a undertow server resource at one time
> ----------------------------------------------------
>
>                 Key: WFLY-12019
>                 URL: https://issues.jboss.org/browse/WFLY-12019
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (Undertow)
>    Affects Versions: 16.0.0.Final
>            Reporter: Bartosz Spyrko
>            Assignee: Bartosz Spyrko
>            Priority: Major
>
> Cannot remove a server attribute.
> {noformat}
> [standalone at localhost:9990 /] /subsystem=undertow/server=default-server:remove()
> {
>     "outcome" => "failed",
>     "failure-description" => "WFLYCTL0171: Removing services has lead to unsatisfied dependencies:
> Service jboss.undertow.server.default-server.default-host was depended upon by service jboss.undertow.server.default-server.default-host.filter-ref.x-powered-by-header, service jboss.undertow.server.default-server.default-host.location.
> /, service jboss.undertow.server.default-server.default-host.filter-ref.server-header",                                                                                                                                                    
>     "rolled-back" => true,
>     "response-headers" => undefined
> }
> {noformat}
> However, it can be removed executing same command again.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list