Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9560

DeploymentOperationsTestCase fails with security manager in WF core

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR16
    • 7.1.0.DR13
    • Test Suite
    • None
    • Not Required

      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testBrowseContentFailsNonexistentPath
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testManagedOperationsFailWithUnmanagedArchiveDeployment
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testManagedOperationsFailWithUnmanagedExplodedDeployment
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testReadContentFailsDirectory
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testReadContentFailsNonExistentPath
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testAddContentFailsWithoutOverwriteManagedExplodedDeployment
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testExplodeFailsWithDeployedManagedArchiveDeployment
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testManagedAttributeReadOnly
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testManagedAttributeValue
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testManagedExplodedOperationsFailWithManagedArchiveDeployment
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testManagedExplodedOperationsFailWithUnmanagedArchiveDeployment
      org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase#testManagedExplodedOperationsFailWithUnmanagedExplodedDeployment

      cd testsuite/standalone/
      mvn test -Dtest=DeploymentOperationsTestCase -Dsecurity.manager -DtestLogToFile=false

      ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service test.deployment.trivial: org.jboss.msc.service.StartException in service test.deployment.trivial: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.lang.Thread.run(Thread.java:785)
      Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.util.PropertyPermission" "test-deployment.jarService" "write")" in code source "(vfs:/home/jtymel/jboss-eap/src/7.1/jboss-eap-7.1.0.DR13-core/testsuite/standalone/target/archives/test-deployment.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.test-deployment.jar" from Service Module Loader")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:278)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
      	at java.lang.System.setProperty(System.java:476)
      	at org.jboss.as.test.deployment.trivial.ServiceActivatorDeployment.start(ServiceActivatorDeployment.java:91)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	... 3 more
      

            ehugonne1@redhat.com Emmanuel Hugonnet
            jtymel Jan Tymel (Inactive)
            Jan Tymel Jan Tymel (Inactive)
            Jan Tymel Jan Tymel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: