Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6190

SingletonReentrantTestCase fails with security manager enabled

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Beta1
    • None
    • Test Suite
    • None

      org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase#testReadCall
      org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase#testWriteCall

      ./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false -Dsecurity.manager -Dts.basic -Dts.noSmoke -Dtest=org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase

      fails with

      java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "modifyThread")" in code source "(vfs:/content/reentrant-test.jar <no signer certificates>)" of "null")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:273)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
      	at java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess(ThreadPoolExecutor.java:735)
      	at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:1387)
      	at java.util.concurrent.Executors$DelegatedExecutorService.shutdown(Executors.java:669)
      	at org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase.testWriteCall(SingletonReentrantTestCase.java:90)
      

            [WFLY-6190] SingletonReentrantTestCase fails with security manager enabled

            Kabir Khan added a comment -

            Bulk closing issues

            Kabir Khan added a comment - Bulk closing issues

            The issue is still there. I am filing a PR for the testcase.

            Ivo Studensky added a comment - The issue is still there. I am filing a PR for the testcase.

            Build with the commit: 0ef8325637665d48f8bdffcf2ac4f7f8cb8b9b3f
            Date: Thu Mar 3 16:35:49 2016 -0600

            Started the application server with standalone.sh and running:

            ./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false -Dsecurity.manager -Dts.basic -Dts.noSmoke -Dtest=org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase

            -------------------------------------------------------
            T E S T S
            -------------------------------------------------------
            Running org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase
            Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.197 sec - in org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase

            [INFO] ------------------------------------------------------------------------
            [INFO] Reactor Summary:
            [INFO]
            [INFO] WildFly Test Suite: Aggregator ..................... SUCCESS [ 14.161 s]
            [INFO] WildFly Test Suite: Integration .................... SUCCESS [ 0.968 s]
            [INFO] WildFly Test Suite: Integration - WS ............... SUCCESS [ 0.836 s]
            [INFO] WildFly Test Suite: Integration - Basic ............ SUCCESS [ 12.346 s]
            [INFO] ------------------------------------------------------------------------
            [INFO] BUILD SUCCESS

            Eduardo Silva (Inactive) added a comment - Build with the commit: 0ef8325637665d48f8bdffcf2ac4f7f8cb8b9b3f Date: Thu Mar 3 16:35:49 2016 -0600 Started the application server with standalone.sh and running: ./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false -Dsecurity.manager -Dts.basic -Dts.noSmoke -Dtest=org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.197 sec - in org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] WildFly Test Suite: Aggregator ..................... SUCCESS [ 14.161 s] [INFO] WildFly Test Suite: Integration .................... SUCCESS [ 0.968 s] [INFO] WildFly Test Suite: Integration - WS ............... SUCCESS [ 0.836 s] [INFO] WildFly Test Suite: Integration - Basic ............ SUCCESS [ 12.346 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS

            The test only pass if -Dsecurity.manager is removed not verifying if the jar is signed.

            ./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false -Dts.basic -Dts.noSmoke -Dtest=org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase

            Eduardo Silva (Inactive) added a comment - The test only pass if -Dsecurity.manager is removed not verifying if the jar is signed. ./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false -Dts.basic -Dts.noSmoke -Dtest=org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase

            Tested successfully executed on version 10.0.0.Alpha1:

            ./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false -Dsecurity.manager -Dts.basic -Dts.noSmoke -Dtest=org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase

            [INFO] ------------------------------------------------------------------------
            [INFO] Reactor Summary:
            [INFO]
            [INFO] WildFly Test Suite: Aggregator ..................... SUCCESS [ 13.219 s]
            [INFO] WildFly Test Suite: Integration .................... SUCCESS [ 0.655 s]
            [INFO] WildFly Test Suite: Integration - Basic ............ SUCCESS [ 1.983 s]
            [INFO] WildFly Test Suite: Integration - Java 8 ........... SUCCESS [ 0.136 s]
            [INFO] ------------------------------------------------------------------------

            Eduardo Silva (Inactive) added a comment - Tested successfully executed on version 10.0.0.Alpha1: ./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false -Dsecurity.manager -Dts.basic -Dts.noSmoke -Dtest=org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] WildFly Test Suite: Aggregator ..................... SUCCESS [ 13.219 s] [INFO] WildFly Test Suite: Integration .................... SUCCESS [ 0.655 s] [INFO] WildFly Test Suite: Integration - Basic ............ SUCCESS [ 1.983 s] [INFO] WildFly Test Suite: Integration - Java 8 ........... SUCCESS [ 0.136 s] [INFO] ------------------------------------------------------------------------

              istudens@redhat.com Ivo Studensky
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: