]
Brian Stansberry updated WFCORE-2532:
-------------------------------------
Component/s: Logging
Some logging tests fail with security manager in WF core
--------------------------------------------------------
Key: WFCORE-2532
URL:
https://issues.jboss.org/browse/WFCORE-2532
Project: WildFly Core
Issue Type: Bug
Components: Logging, Test Suite
Reporter: Jan Tymel
* *org.jboss.as.test.integration.logging.operations.CustomFormattersTestCase*
* *org.jboss.as.test.integration.logging.operations.CustomHandlerOperationsTestCase*
* *org.jboss.as.test.integration.logging.operations.CustomHandlerTestCase*
* *org.jboss.as.test.integration.logging.operations.Log4jCustomHandlerTestCase*
* *org.jboss.as.test.integration.logging.perdeploy.JBossLog4jXmlTestCase*
* *org.jboss.as.test.integration.logging.perdeploy.JBossLoggingPropertiesTestCase*
* *org.jboss.as.test.integration.logging.perdeploy.Log4jPropertiesTestCase*
* *org.jboss.as.test.integration.logging.perdeploy.Log4jXmlTestCase*
* *org.jboss.as.test.integration.logging.perdeploy.LoggingPropertiesTestCase*
* *org.jboss.as.test.integration.logging.profiles.LoggingProfilesTestCase*
* *org.jboss.as.test.integration.logging.profiles.NonExistingProfileTestCase*
* *org.jboss.as.test.integration.logging.syslog.SyslogHandlerTestCase*
{{cd testsuite/standalone/}}
{{mvn test -Dtest=org.jboss.as.test.integration.logging.**.* -Dsecurity.manager}}
{code}
org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper$ServerDeploymentException:
java.lang.Exception: {
"WFLYCTL0080: Failed services" =>
{"jboss.deployment.unit.\"logging1.jar\".INSTALL" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"logging1.jar\".INSTALL: WFLYSRV0153: Failed to process
phase INSTALL of deployment \"logging1.jar\"
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed
(permission \"(\"java.util.PropertyPermission\"
\"jboss.bind.address\" \"read\")\" in code source
\"(vfs:/content/logging1.jar <no signer certificates>)\" of
\"ModuleClassLoader for Module \"deployment.logging1.jar\" from Service
Module Loader\")"},
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.deployment.unit.\"logging1.jar\".INSTALL"]
}
at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)
at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123)
at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:85)
at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:42)
at
org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper.deploy(ServerDeploymentHelper.java:55)
at
org.jboss.as.test.integration.logging.AbstractLoggingTestCase.deploy(AbstractLoggingTestCase.java:168)
at
org.jboss.as.test.integration.logging.profiles.LoggingProfilesTestCase.deploy(LoggingProfilesTestCase.java:314)
at
org.jboss.as.test.integration.logging.profiles.LoggingProfilesTestCase.deploy(LoggingProfilesTestCase.java:304)
at
org.jboss.as.test.integration.logging.profiles.LoggingProfilesTestCase.testProfiles(LoggingProfilesTestCase.java:201
{code}
* *org.jboss.as.test.manualmode.logging.Log4jAppenderTestCase*
* *org.jboss.as.test.manualmode.logging.LoggingPreferencesTestCase*
* *org.jboss.as.test.manualmode.logging.PerDeployLoggingTestCase*
* *org.jboss.as.test.manualmode.logging.ReconnectSyslogServerTestCase*
* *org.jboss.as.test.manualmode.logging.SizeAppenderRestartTestCase*
* *org.jboss.as.test.manualmode.logging.SyslogIsNotAvailableDuringServerBootTestCase*
{{cd testsuite/manualmode/}}
{{mvn test -Dtest=org.jboss.as.test.manualmode.logging.* -Dsecurity.manager}}
{code}
org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper$ServerDeploymentException:
java.lang.Exception: {
"WFLYCTL0080: Failed services" =>
{"jboss.deployment.unit.\"logging-test.jar\".INSTALL" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"logging-test.jar\".INSTALL: WFLYSRV0153: Failed to
process phase INSTALL of deployment \"logging-test.jar\"
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
\"ModuleClassLoader for Module \"deployment.logging-test.jar\" from Service
Module Loader\")"},
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.deployment.unit.\"logging-test.jar\".INSTALL"]
}
at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)
at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123)
at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:85)
at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:42)
at
org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper.deploy(ServerDeploymentHelper.java:55)
at org.wildfly.core.testrunner.ServerController.deploy(ServerController.java:92)
at
org.jboss.as.test.manualmode.logging.AbstractLoggingTestCase.deploy(AbstractLoggingTestCase.java:197)
at
org.jboss.as.test.manualmode.logging.Log4jAppenderTestCase.startContainer(Log4jAppenderTestCase.java:93)
{code}