Details
-
Bug
-
Resolution: Done
-
Minor
-
JBossAS-3.2.7 Final
-
None
-
None
Description
The org.jboss.test.security.test.SecurityProxyUnitTestCase fails due to the unsupported Subject.doAsPrivileged call. The jboss-jaas.jar implementation only addresses the jaas 1.0 extension problems with class loading of login modules. It does not provide a full Subject implementation and this will not be fixed for 3.2.7. This test would have to run with the server configured to use the 1.0 jaas.jar extension release, and either the jboss LoginContext related classes in the extension classpath, or the login modules in the extension classpath.
<testcase classname="org.jboss.test.security.test.SecurityProxyUnitTestCase" name="testMethodAccess" time="0.296">
<error message="RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.UnsupportedOperationException: doAsPrivileged is not supported by this version of JAAS 1.0, use the JDK 1.4 version" type="java.rmi.ServerException">java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.UnsupportedOperationException: doAsPrivileged is not supported by this version of JAAS 1.0, use the JDK 1.4 version
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.UnsupportedOperationException: doAsPrivileged is not supported by this version of JAAS 1.0, use the JDK 1.4 version
java.lang.UnsupportedOperationException: doAsPrivileged is not supported by this version of JAAS 1.0, use the JDK 1.4 version
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91)
at $Proxy2.read(Unknown Source)
at org.jboss.test.security.test.SecurityProxyUnitTestCase.testMethodAccess(SecurityProxyUnitTestCase.java:71)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
</error>
</testcase>