]
Vladimir Blagojevic updated ISPN-7247:
--------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
Administration console - changing any cache configuration adds
security tag to the configuration
------------------------------------------------------------------------------------------------
Key: ISPN-7247
URL:
https://issues.jboss.org/browse/ISPN-7247
Project: Infinispan
Issue Type: Bug
Components: JMX, reporting and management
Affects Versions: 9.0.0.Alpha4
Reporter: Roman Macor
Assignee: Vladimir Blagojevic
Steps to reproduce:
click on cache container -> cache -> configuration -> change a value (e.g.
number of owner 2 -> 1) -> click apply changes -> click restart later
Check the configuration file - domain.xml, the modified cache now has security tag:
<security>
<authorization roles=""/>
</security>
This result in error when we stop the server and start it again:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start
service jboss.datagrid-infinispan.clustered.default.config:
org.jboss.msc.service.StartException in service
jboss.datagrid-infinispan.clustered.default.config: Failed to start service
[Server:server-one] at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
[Server:server-one] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[Server:server-one] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[Server:server-one] at java.lang.Thread.run(Thread.java:745)
[Server:server-one] Caused by: org.infinispan.commons.CacheConfigurationException:
ISPN000414: Global security authorization should be enabled if cache authorization
enabled.
...
09:57:05,492 ERROR [org.jboss.as.controller.management-operation] (Controller Boot
Thread) WFLYCTL0013: Operation ("add") failed - address: ([
[Server:server-one] ("subsystem" =>
"datagrid-infinispan-endpoint"),
[Server:server-one] ("memcached-connector" =>
"memcached-connector")
[Server:server-one] ]) - failure description: {"WFLYCTL0180: Services with
missing/unavailable dependencies" => undefined}
[Server:server-one] 09:57:05,493 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
[Server:server-one] ("subsystem" =>
"datagrid-infinispan-endpoint"),
[Server:server-one] ("hotrod-connector" =>
"hotrod-connector")
[Server:server-one] ]) - failure description: {"WFLYCTL0180: Services with
missing/unavailable dependencies" => undefined}
[Server:server-one] 09:57:05,494 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
[Server:server-one] ("subsystem" =>
"datagrid-infinispan-endpoint"),
[Server:server-one] ("rest-connector" => "rest-connector")
[Server:server-one] ]) - failure description: {"WFLYCTL0180: Services with
missing/unavailable dependencies" => undefined}
[Server:server-one] 09:57:05,495 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
[Server:server-one] ("subsystem" =>
"datagrid-infinispan-endpoint"),
[Server:server-one] ("websocket-connector" =>
"websocket-connector")
[Server:server-one] ]) - failure description: {"WFLYCTL0180: Services with
missing/unavailable dependencies" => undefined}
[Server:server-one] 09:57:05,496 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
[Server:server-one] ("subsystem" => "datagrid-infinispan"),
[Server:server-one] ("cache-container" => "clustered"),
[Server:server-one] ("configurations" => "CONFIGURATIONS"),
[Server:server-one] ("distributed-cache-configuration" =>
"default")
[Server:server-one] ]) - failure description: {
[Server:server-one] "WFLYCTL0080: Failed services" =>
{"jboss.datagrid-infinispan.clustered.default.config" =>
"org.jboss.msc.service.StartException in service
jboss.datagrid-infinispan.clustered.default.config: Failed to start service
[Server:server-one] Caused by: org.infinispan.commons.CacheConfigurationException:
ISPN000414: Global security authorization should be enabled if cache authorization
enabled."},
[Server:server-one] "WFLYCTL0412: Required services that are not
installed:" => ["jboss.datagrid-infinispan.clustered.default.config"],
[Server:server-one] "WFLYCTL0180: Services with missing/unavailable
dependencies" => undefined
[Server:server-one] }
[Server:server-one] 09:57:05,496 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
[Server:server-one] ("subsystem" => "datagrid-infinispan"),
[Server:server-one] ("cache-container" => "clustered"),
[Server:server-one] ("distributed-cache" => "default")
[Server:server-one] ]) - failure description: {"WFLYCTL0180: Services with
missing/unavailable dependencies" => undefined}