]
Dan Berindei updated ISPN-10722:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 10.0.1.Final
(was: 10.0.0.Final)
Resolution: Done
Mgmt console: home page load fails in case secured cache container
------------------------------------------------------------------
Key: ISPN-10722
URL:
https://issues.jboss.org/browse/ISPN-10722
Project: Infinispan
Issue Type: Bug
Components: Console, JMX, reporting and management
Affects Versions: 9.4.16.Final, 10.0.0.CR2
Reporter: Dan Berindei
Assignee: Will Burns
Priority: Major
Fix For: 9.4.17.Final, 10.0.1.Final
The following exception appears in server logs and hanging screen is visible in browser
when mgmt console home page is accessed, in case when the server is started with secured
cache-container.
{noformat}
12:53:09,199 ERROR [org.jboss.as.controller.management-operation] (External Management
Request Threads -- 2) WFLYCTL0013: Operation ("read-attribute") failed -
address: ([
("subsystem" => "datagrid-infinispan"),
("cache-container" => "local")
]): java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'null'
lacks 'ADMIN' permission
at
org.infinispan.core:ispn-9.4@9.4.16.Final//org.infinispan.security.impl.AuthorizationHelper.checkPermission(AuthorizationHelper.java:87)
at
org.infinispan.core:ispn-9.4@9.4.16.Final//org.infinispan.security.impl.AuthorizationHelper.checkPermission(AuthorizationHelper.java:57)
at
org.infinispan.core:ispn-9.4@9.4.16.Final//org.infinispan.manager.DefaultCacheManager.getDefaultCacheConfiguration(DefaultCacheManager.java:847)
at
org.infinispan.core:ispn-9.4@9.4.16.Final//org.infinispan.xsite.GlobalXSiteAdminOperations.collectXSiteAdminOperation(GlobalXSiteAdminOperations.java:135)
at
org.infinispan.core:ispn-9.4@9.4.16.Final//org.infinispan.xsite.GlobalXSiteAdminOperations.globalStatus(GlobalXSiteAdminOperations.java:86)
at
org.infinispan.extension:ispn-9.4@9.4.16.Final//org.jboss.as.clustering.infinispan.subsystem.CacheContainerMetricsHandler.filterSitesByStatus(CacheContainerMetricsHandler.java:342)
at
org.infinispan.extension:ispn-9.4@9.4.16.Final//org.jboss.as.clustering.infinispan.subsystem.CacheContainerMetricsHandler.executeRuntimeStep(CacheContainerMetricsHandler.java:296)
{noformat}