]
Bartosz Baranowski reassigned WFLY-11364:
-----------------------------------------
Assignee: Bartosz Baranowski
Test JpaDsRestartTestCase fails with security manager
-----------------------------------------------------
Key: WFLY-11364
URL:
https://issues.jboss.org/browse/WFLY-11364
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate, Test Suite
Affects Versions: 15.0.0.Beta1
Reporter: Martin Choma
Assignee: Bartosz Baranowski
Priority: Major
Labels: security-manager
{noformat}
org.jboss.as.test.integration.jpa.dsrestart (1)
JpaDsRestartTestCase.testRestartDataSource
{noformat}
{noformat}
java.security.AccessControlException: WFSM000001: Permission check failed (permission
"("org.jboss.as.controller.security.ControllerPermission"
"canAccessModelController")" in code source
"(vfs:/content/dsrestartjpa.war/WEB-INF/classes <no signer certificates>)"
of "ModuleClassLoader for Module "deployment.dsrestartjpa.war" from Service
Module Loader")
at
org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:294)
at
org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:191)
at
org.jboss.as.controller.AbstractControllerService.getValue(AbstractControllerService.java:621)
at
org.jboss.as.controller.AbstractControllerService.getValue(AbstractControllerService.java:77)
at
org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1110)
at
org.jboss.as.test.integration.jpa.dsrestart.JpaDsRestartTestCase.toggleDataSource(JpaDsRestartTestCase.java:102)
at
org.jboss.as.test.integration.jpa.dsrestart.JpaDsRestartTestCase.testRestartDataSource(JpaDsRestartTestCase.java:86)
...
{noformat}
It looks to me as valid requirement for code running in container using ModelController
to have granted permission to do so. In this case code is test running in container. Not
sure how permission can be granted in that case.
[1]
https://ci.wildfly.org/viewLog.html?buildId=128138&buildTypeId=WF_Mas...