]
Chao Wang reassigned WFLY-10196:
--------------------------------
Assignee: Chao Wang
(TS) TimeoutUtil reads system property from static init without
privileged block
--------------------------------------------------------------------------------
Key: WFLY-10196
URL:
https://issues.jboss.org/browse/WFLY-10196
Project: WildFly
Issue Type: Bug
Components: Test Suite
Reporter: David Lloyd
Assignee: Chao Wang
Labels: security-manager
Stack trace:
{noformat}
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
{noformat}
The call to {{getInteger}} needs to be privileged.