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

Tests in org.jboss.as.test.integration.microprofile.opentracing failing with security manager

    XMLWordPrintable

Details

    Description

      These tests fail with security manager from package org.jboss.as.test.integration.microprofile.opentracing

      • ResourceNotTracedTestCase.notTracedEndpointYieldsNoSpans
      • ResourceTracedTestCase.tracedEndpointYieldsSpan
      • ResourceWithCDITestCase.tracedEndpointYieldsSpan
      • ResourceWithCustomOperationNameBeanTestCase.customOperationName
      • SimpleRestClientTestCase.clientRequestSpanJoinsServer
      java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "modifyThread")" in code source "(vfs:/content/3f3aff01-8e62-42e9-81c0-022f693ec7e0.war/WEB-INF/classes <no signer certificates>)" of "ModuleClassLoader for Module "deployment.3f3aff01-8e62-42e9-81c0-022f693ec7e0.war" from Service Module Loader")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:294)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:191)
      	at java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess(ThreadPoolExecutor.java:742)
      	at java.util.concurrent.ThreadPoolExecutor.shutdownNow(ThreadPoolExecutor.java:1429)
      	at java.util.concurrent.Executors$DelegatedExecutorService.shutdownNow(Executors.java:670)
      	at org.jboss.as.test.integration.common.HttpRequest.execute(HttpRequest.java:63)
      	at org.jboss.as.test.integration.common.HttpRequest.get(HttpRequest.java:82)
      	at org.jboss.as.test.integration.microprofile.opentracing.ResourceNotTracedTestCase.performCall(ResourceNotTracedTestCase.java:63)
      	at org.jboss.as.test.integration.microprofile.opentracing.ResourceNotTracedTestCase.notTracedEndpointYieldsNoSpans(ResourceNotTracedTestCase.java:57)
      

      As stacktrace is from test side and tests are missing @RunAsClient, I believe tests are running in container. jpkroehling@redhat.com is this really intent tests are missing @RunAsClient annotation?

      Attachments

        Issue Links

          Activity

            People

              jstourac@redhat.com Jan Stourac
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: