[jboss-jira] [JBoss JIRA] (AS7-2853) Calling getCallerPrincipal should not be permitted on lifecycle methods - on @PreDestroy is allowed
Ondřej Chaloupka (Commented) (JIRA)
jira-events at lists.jboss.org
Fri Dec 9 11:08:40 EST 2011
[ https://issues.jboss.org/browse/AS7-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649615#comment-12649615 ]
Ondřej Chaloupka commented on AS7-2853:
---------------------------------------
To clarify - calling the method getCallerPrincipal is allowed on SFSB. It's not allowed for SLSB and MDB.
Currently it works for SLSB and it does not work for MDB.
> Calling getCallerPrincipal should not be permitted on lifecycle methods - on @PreDestroy is allowed
> ---------------------------------------------------------------------------------------------------
>
> Key: AS7-2853
> URL: https://issues.jboss.org/browse/AS7-2853
> Project: Application Server 7
> Issue Type: Bug
> Reporter: Ondřej Chaloupka
> Assignee: Stuart Douglas
>
> Calling method on getCallerPrincipal should cause throwing IllegalStateException (EJB3.1 17.2.5) on lifecycle methods @PostConstruct, @PreDestroy but it returns anonymous identity role on @PreDestroy annotated method.
> Test could be found:
> https://github.com/ochaloup/jboss-as/blob/JBQA-5451-test-migration-getcallerprincipal/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/security/callerprincipal/SLSBLifecycleCallback.java
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list