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

Some tests throws "Permission check failed" while run with security manager

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.0.0.DR6
    • Test Suite
    • Not Required
    • Hide

      1. cd wildfly-core/testsuite
      2. mvn clean test -Dtest=HttpDeploymentUploadUnitTestCase -Dsecurity.manager -DtestLogToFile=false -DfailIfNoTests=false

      Show
      1. cd wildfly-core/testsuite 2. mvn clean test -Dtest=HttpDeploymentUploadUnitTestCase -Dsecurity.manager -DtestLogToFile=false -DfailIfNoTests=false

      Some tests are failing to deploy an archive when testsuite run with security manager enabled.

      08:03:07,171 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:1904)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.util.PropertyPermission" "test.deployment.trivial.prop" "write")" in code source "(vfs:/content/test-http-deployment.sar <no signer certificates>)" of "null")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:274)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:176)
      	at java.lang.System.setProperty(System.java:792)
      	at org.jboss.as.test.deployment.trivial.ServiceActivatorDeployment.start(ServiceActivatorDeployment.java:80)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      	... 3 more
      
      08:03:07,173 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-5) WFLYCTL0013: Operation ("add") failed - address: ([{"deployment" => "test-http-deployment.sar"}]) - failure description: {"WFLYCTL0080: Failed services" => {"test.deployment.trivial" => "org.jboss.msc.service.StartException in service test.deployment.trivial: Failed to start service
          Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.util.PropertyPermission\" \"test.deployment.trivial.prop\" \"write\")\" in code source \"(vfs:/content/test-http-deployment.sar <no signer certificates>)\" of \"null\")"}}
      08:03:07,174 ERROR [org.jboss.as.server] (XNIO-1 task-5) WFLYSRV0021: Deploy of deployment "test-http-deployment.sar" was rolled back with the following failure message: 
      {"WFLYCTL0080: Failed services" => {"test.deployment.trivial" => "org.jboss.msc.service.StartException in service test.deployment.trivial: Failed to start service
          Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.util.PropertyPermission\" \"test.deployment.trivial.prop\" \"write\")\" in code source \"(vfs:/content/test-http-deployment.sar <no signer certificates>)\" of \"null\")"}}
      

            [JBEAP-526] Some tests throws "Permission check failed" while run with security manager

            Based on comments above I'm closing this issue as a duplicate.
            Following issues were created to track test failures in WF core separetly:

            Jan Tymel (Inactive) added a comment - Based on comments above I'm closing this issue as a duplicate. Following issues were created to track test failures in WF core separetly: JBEAP-8610 JBEAP-9548 JBEAP-9551 JBEAP-9552 JBEAP-9553 JBEAP-9554 JBEAP-9556 JBEAP-9560

            Kabir Khan added a comment -

            rhn-support-iweiss I'm fine with closing it

            Kabir Khan added a comment - rhn-support-iweiss I'm fine with closing it

            Ingo Weiss added a comment -

            Jan, I would suggest closed as a duplicate, to make it easy on whoever happens to look at this. But before doing that I would like kkhan1@redhat.com's opinion if this will affect him.

            Ingo Weiss added a comment - Jan, I would suggest closed as a duplicate, to make it easy on whoever happens to look at this. But before doing that I would like kkhan1@redhat.com 's opinion if this will affect him.

            I recommend getting from Ingo a list of the tests that he fixed, and verifying this based on that list.

            Brian Stansberry added a comment - I recommend getting from Ingo a list of the tests that he fixed, and verifying this based on that list.

            OK, I will create separate issues.

            Once created, what should be the correct status of this issue? Verified or Closed as a duplicate?

            Jan Tymel (Inactive) added a comment - OK, I will create separate issues. Once created, what should be the correct status of this issue? Verified or Closed as a duplicate?

            Ingo Weiss added a comment -

            I would suggest opening new issues so others can tackle them as well.

            Ingo Weiss added a comment - I would suggest opening new issues so others can tackle them as well.

            I recommend you open a new issue for any of those that weren't previously listed, unless rhn-support-iweiss is ok with being the assignee for fixing additional tests. Either way, this list needs to be the final list for the issue and anything further is a new issue. Our work processes don't map well to open-ended tasks.

            Brian Stansberry added a comment - I recommend you open a new issue for any of those that weren't previously listed, unless rhn-support-iweiss is ok with being the assignee for fixing additional tests. Either way, this list needs to be the final list for the issue and anything further is a new issue. Our work processes don't map well to open-ended tasks.

            Verification failed in 7.1.0.DR12. There are still tests that fail with security manager:

            • org.jboss.as.test.integration.domain.slavereconnect.SlaveReconnectTestCase
            • org.jboss.as.test.integration.domain.suites.DeploymentRolloutFailureTestCase
            • org.jboss.as.test.integration.jmx.ModelControllerMBeanTestCase
            • 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
            • org.jboss.as.test.integration.management.cli.modules.ModuleResourceRootPathsTestCase
            • org.jboss.as.test.integration.mgmt.access.JmxSensitiveTestCase
            • org.jboss.as.test.manualmode.deployment.InterdependentDeploymentTestCase
            • 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
            • org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase

            Jan Tymel (Inactive) added a comment - Verification failed in 7.1.0.DR12. There are still tests that fail with security manager: org.jboss.as.test.integration.domain.slavereconnect.SlaveReconnectTestCase org.jboss.as.test.integration.domain.suites.DeploymentRolloutFailureTestCase org.jboss.as.test.integration.jmx.ModelControllerMBeanTestCase 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 org.jboss.as.test.integration.management.cli.modules.ModuleResourceRootPathsTestCase org.jboss.as.test.integration.mgmt.access.JmxSensitiveTestCase org.jboss.as.test.manualmode.deployment.InterdependentDeploymentTestCase 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 org.wildfly.core.test.standalone.mgmt.api.core.DeploymentOperationsTestCase

            Fix is merged upstream.

            Brian Stansberry added a comment - Fix is merged upstream.

            rhn-support-iweiss please ping me re: handling of this as it appears to be a catch-all JIRA so how to process it as changes happen upstream is unclear.

            Brian Stansberry added a comment - rhn-support-iweiss please ping me re: handling of this as it appears to be a catch-all JIRA so how to process it as changes happen upstream is unclear.

              rhn-support-iweiss Ingo Weiss
              pkremens@redhat.com Petr Kremensky (Inactive)
              Jan Tymel Jan Tymel (Inactive)
              Jan Tymel Jan Tymel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: