[jboss-jira] [JBoss JIRA] (WFCORE-5049) Ensure any java.security.Policy is registered before PolicyConfigurationFactory

Darran Lofthouse (Jira) issues at jboss.org
Tue Jul 14 07:26:01 EDT 2020


     [ https://issues.redhat.com/browse/WFCORE-5049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse updated WFCORE-5049:
-------------------------------------
    Description: 
A PolicyConfigurationFactory may want to consult the Policy so ensure it is installed first.

This comes up within the Jakarta EE TCK where the test PolicyConfigurationFactory consults the underlying  registered Policy.

https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/tests/jacc/provider/TSPolicyConfigurationFactoryImpl.java

{code}
12:11:00,728 ERROR [stderr] (MSC service thread 1-3) java.lang.ClassCastException: org.jboss.modules.ModulesPolicy cannot be cast to com.sun.ts.tests.jacc.provider.TSPolicy
12:11:00,728 ERROR [stderr] (MSC service thread 1-3) 	at com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl.getTSLogger(TSPolicyConfigurationFactoryImpl.java:229)
12:11:00,729 ERROR [stderr] (MSC service thread 1-3) 	at com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl.getPolicyConfigurationFactory(TSPolicyConfigurationFactoryImpl.java:159)
12:11:00,729 ERROR [stderr] (MSC service thread 1-3) 	at com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl.<init>(TSPolicyConfigurationFactoryImpl.java:53)
12:11:00,729 ERROR [stderr] (MSC service thread 1-3) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
{code}

  was:
A PolicyConfigurationFactory may want to consult the Policy so ensure it is installed first.

This comes up within the Jakarta EE TCK where the test PolicyConfigurationFactory consults the underlying  registered Policy.

https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/tests/jacc/provider/TSPolicyConfigurationFactoryImpl.java



> Ensure any java.security.Policy is registered before PolicyConfigurationFactory
> -------------------------------------------------------------------------------
>
>                 Key: WFCORE-5049
>                 URL: https://issues.redhat.com/browse/WFCORE-5049
>             Project: WildFly Core
>          Issue Type: Task
>          Components: Security
>            Reporter: Darran Lofthouse
>            Assignee: Darran Lofthouse
>            Priority: Major
>             Fix For: 13.0.0.Beta2
>
>
> A PolicyConfigurationFactory may want to consult the Policy so ensure it is installed first.
> This comes up within the Jakarta EE TCK where the test PolicyConfigurationFactory consults the underlying  registered Policy.
> https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/tests/jacc/provider/TSPolicyConfigurationFactoryImpl.java
> {code}
> 12:11:00,728 ERROR [stderr] (MSC service thread 1-3) java.lang.ClassCastException: org.jboss.modules.ModulesPolicy cannot be cast to com.sun.ts.tests.jacc.provider.TSPolicy
> 12:11:00,728 ERROR [stderr] (MSC service thread 1-3) 	at com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl.getTSLogger(TSPolicyConfigurationFactoryImpl.java:229)
> 12:11:00,729 ERROR [stderr] (MSC service thread 1-3) 	at com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl.getPolicyConfigurationFactory(TSPolicyConfigurationFactoryImpl.java:159)
> 12:11:00,729 ERROR [stderr] (MSC service thread 1-3) 	at com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl.<init>(TSPolicyConfigurationFactoryImpl.java:53)
> 12:11:00,729 ERROR [stderr] (MSC service thread 1-3) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list