[jboss-jira] [JBoss JIRA] (WFCORE-1461) LoggingPreferencesTestCase fails with security manager

Ivo Studensky (JIRA) issues at jboss.org
Tue Apr 12 09:29:01 EDT 2016


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

Ivo Studensky reassigned WFCORE-1461:
-------------------------------------

    Assignee: Jan Tymel  (was: Ivo Studensky)


What is the point of running WildFly Core tests with Security Manager enabled if there is no Security Manager subsystem in WF Core and thus no option to parse permission.xml of a deployment?

> LoggingPreferencesTestCase fails with security manager
> ------------------------------------------------------
>
>                 Key: WFCORE-1461
>                 URL: https://issues.jboss.org/browse/WFCORE-1461
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Test Suite
>            Reporter: Jan Tymel
>            Assignee: Jan Tymel
>
> *org.jboss.as.test.manualmode.logging.LoggingPreferencesTestCase*
> {{.../WildFly_core/testsuite/manualmode/mvn test -DtestLogToFile=false -Dtest=org.jboss.as.test.manualmode.logging.LoggingPreferencesTestCase -Dsecurity.manager}}
> Fails with:
> {code}
> Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.util.PropertyPermission" "jboss.bind.address" "read")" in code source "(vfs:/content/logging-test.jar <no signer certificates>)" of "null")
> 	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:273)
> 	at org.wildfly.security.manager.WildFlySecurityManager.checkPropertyAccess(WildFlySecurityManager.java:496)
> 	at java.lang.System.getProperty(System.java:717)
> 	at org.jboss.as.test.shared.TestSuiteEnvironment.getSystemProperty(TestSuiteEnvironment.java:50)
> 	at org.jboss.as.test.shared.TestSuiteEnvironment.getHttpAddress(TestSuiteEnvironment.java:162)
> 	at org.wildfly.test.undertow.UndertowServiceActivator.getAddress(UndertowServiceActivator.java:100)
> 	at org.wildfly.test.undertow.UndertowServiceActivator.activate(UndertowServiceActivator.java:66)
> 	at org.jboss.as.server.deployment.service.ServiceActivatorProcessor.deploy(ServiceActivatorProcessor.java:74)
> 	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
> 	... 5 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list