]
Jan Kašík moved JBEAP-11862 to WFLY-9025:
-----------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-9025 (was: JBEAP-11862)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Security
(was: Security)
Affects Version/s: 11.0.0.Alpha1
(was: 7.1.0.ER1)
It is not possible to add new Elytron policy after adding and
removing it first
-------------------------------------------------------------------------------
Key: WFLY-9025
URL:
https://issues.jboss.org/browse/WFLY-9025
Project: WildFly
Issue Type: Bug
Components: Security
Affects Versions: 11.0.0.Alpha1
Reporter: Jan Kašík
Adding new Elytron policy fails if it was previously added and then removed. Next adding
fails [1].
{code}
[standalone@localhost:9990 /] /subsystem=elytron/policy=jacc:add(jacc-policy=[{name =>
jacc}])
{
"outcome" => "failed",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
},
"failure-description" => {"WFLYCTL0080: Failed services" =>
{"org.wildfly.security.policy" => "Failed to start service
Caused by: java.lang.RuntimeException: Failed to set policy
[org.wildfly.security.authz.jacc.JaccDelegatingPolicy@502d9a84]
Caused by: java.lang.SecurityException: ELY03018: Cannot add permissions to a
read-only permission collection"}},
"rolled-back" => true
}
{code}