[jboss-jira] [JBoss JIRA] Reopened: (JBAS-5971) EJBContext.getCallerPrincipal() results in IllegalStateException

egor kolesnikov (JIRA) jira-events at lists.jboss.org
Thu Sep 18 00:08:21 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBAS-5971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

egor kolesnikov reopened JBAS-5971:
-----------------------------------



given correct component

> EJBContext.getCallerPrincipal() results in IllegalStateException
> ----------------------------------------------------------------
>
>                 Key: JBAS-5971
>                 URL: https://jira.jboss.org/jira/browse/JBAS-5971
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB3
>    Affects Versions: JBossAS-4.2.3.GA
>            Reporter: egor kolesnikov
>            Assignee: Ales Justin
>
> Observed behavior:
> calling EJBContext.getCallerPrincipal() for not logged-in user (Stateless bean method invoked from non-secure servlet) results in java.lang.IllegalStateException: No valid security context for the caller identity exception.
> Stateless bean definition follows:
> @Stateless(name = "AwardService")
> @SecurityDomain(unauthenticatedPrincipal = "guest", value = "portal")
> public class AwardServiceImpl implements AwardService {
> .....
> }
> Expected behavior:
> "guest" principal to be returned on getCallerPrincipal() method invocation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list