-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
Specifying a <security-domain> in the jboss-app.xml incorrectly sets the @SecurityDomain on EJB3 session beans.
In the jboss-app.xml the security domain is specified as follows:
<jboss-app>
<security-domain>java:/jaas/hch</security-domain>
</jboss-app>
In Ejb3DescriptorHandler the security-domain is copied directly into the SecurityDomainImpl instance as "java:/jaas/hch", however the @SecurityDomain annotation should be populated with the value "hch" (without the leading "java:/jaas/" prefix). This causes the EJB3 session bean authentication to behave unexpectedly, since the authentication for the bean reverts to the default domain instead of the specified one.
The only way I've found to workaround this issue is to specify the @SecurityDomain individually on every session bean in the project.
- is duplicated by
-
EJBTHREE-1115 CLONE -Allow a default <security-domain> element in jboss.xml
-
- Resolved
-