[jboss-jira] [JBoss JIRA] (WFLY-4880) Permission names are not persisted in the domain model

Josef Cacek (JIRA) issues at jboss.org
Tue Jul 7 08:49:04 EDT 2015


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

Josef Cacek updated WFLY-4880:
------------------------------
    Steps to Reproduce: 
{code}
# run the server
./standalone.sh

# add 2 permission nodes to domain model with the same permission settings:
./jboss-cli.sh -c << EOT
/subsystem=security-manager/deployment-permissions=default/maximum-set=default/permission=test1:add(class=java.io.FilePermission, name="/-", actions=read)
/subsystem=security-manager/deployment-permissions=default/maximum-set=default/permission=test2:add(class=java.io.FilePermission, name="/-", actions=read)
reload
EOT
{code}

The reload fails with:
{code}
14:34:38,100 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 2) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "security-manager"),
    ("deployment-permissions" => "default"),
    ("maximum-set" => "default"),
    ("permission" => "java.io.FilePermission|/-|read")
]) - failure description: "WFLYCTL0212: Duplicate resource [
    (\"subsystem\" => \"security-manager\"),
    (\"deployment-permissions\" => \"default\"),
    (\"maximum-set\" => \"default\"),
    (\"permission\" => \"java.io.FilePermission|/-|read\")
]"
14:34:38,109 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) "WFLYCTL0193: Failed executing subsystem security-manager boot operations"
14:34:38,110 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("parallel-subsystem-boot") failed - address: ([]) - failure description: "\"WFLYCTL0193: Failed executing subsystem security-manager boot operations\""
14:34:38,114 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
{code}


> Permission names are not persisted in the domain model
> ------------------------------------------------------
>
>                 Key: WFLY-4880
>                 URL: https://issues.jboss.org/browse/WFLY-4880
>             Project: WildFly
>          Issue Type: Bug
>          Components: Domain Management, Security Manager
>    Affects Versions: 10.0.0.Alpha4
>            Reporter: Josef Cacek
>            Assignee: Darran Lofthouse
>            Priority: Critical
>
> Permission names used in the {{security-manager}} subsystem model are not persisted. It can simply lead to non-bootable server configuration.
> Expected behavior:
> The names used for permission model nodes are persisted in the model (e.g. in an {{alias}} attribute).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list