Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3756

(TS) TimeoutUtil reads system property from static init without privileged block

    XMLWordPrintable

Details

    Description

      Stack trace:

      java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.util.PropertyPermission" "ts.timeout.factor" "read")" in code source "(vfs:/content/RemoteInvocationTest.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.RemoteInvocationTest.jar" from Service Module Loader")
          at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:295)
          at org.wildfly.security.manager.WildFlySecurityManager.checkPropertyAccess(WildFlySecurityManager.java:479)
          at java.lang.System.getProperty(System.java:717)
          at java.lang.Integer.getInteger(Integer.java:1101)
          at java.lang.Integer.getInteger(Integer.java:1057)
          at org.jboss.as.test.shared.TimeoutUtil.<clinit>(TimeoutUtil.java:39)
          ... 135 more
      

      The call to getInteger needs to be privileged.

      Attachments

        Activity

          People

            chaowan@redhat.com Chao Wang
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: