-
Bug
-
Resolution: Done
-
Major
-
7.0.0.DR8
-
None
Description of problem:
Some tests end with Security Exception after login with security manager.
Affected tests found so far:
- org.jboss.as.test.integration.ejb.security.AnnotationAuthorizationTestCase
- org.jboss.as.test.integration.ejb.security.AuthenticationTestCase
- org.jboss.as.test.integration.ejb.security.EJBInWarDefaultSecurityDomainTestCase#testSecurityOnBeanInAbsenceOfExplicitSecurityDomain
- org.jboss.as.test.integration.ejb.security.LifecycleTestCase
- org.jboss.as.test.integration.ejb.security.SecurityDDOverrideTestCase#testDDOverride
- org.jboss.as.test.integration.ejb.security.asynchronous.AsynchronousSecurityTestCase
- org.jboss.as.test.integration.ejb.security.missingmethodpermission.MissingMethodPermissionsDefaultAllowedTestCase
- org.jboss.as.test.integration.ejb.security.missingmethodpermission.MissingMethodPermissionsTestCase
- org.jboss.as.test.integration.ejb.security.rolelink.SecurityRoleLinkTestCase#testIsCallerInRole
- org.jboss.as.test.integration.ejb.security.runas.RunAsTestCase
How reproducible:
Always
Steps to Reproduce:
- ./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2 -DfailIfNoTests=false -Dsecurity.manager -Dts.basic -Dts.noSmoke -Dtest=AnnotationAuthorizationTestCase
Actual results:
javax.security.auth.login.LoginException: Security Exception at javax.security.auth.login.LoginContext.invoke(LoginContext.java:841) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) at javax.security.auth.login.LoginContext.login(LoginContext.java:588) at org.jboss.as.test.integration.ejb.security.AnnotationAuthorizationTestCase.testRolesAllowedOverriden_User2(AnnotationAuthorizationTestCase.java:187)