You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2013/01/19 12:08:12 UTC

[jira] [Commented] (TOMEE-743) TomcatSecurityService created RunAsRole not return true when call TomcatSecurityService.isCallerInRole

    [ https://issues.apache.org/jira/browse/TOMEE-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557968#comment-13557968 ] 

Romain Manni-Bucau commented on TOMEE-743:
------------------------------------------

Worked a bit on it yesterday. Can you give it a try with next snapshot (tomorrow) or from sources please?
                
> TomcatSecurityService created RunAsRole not return true when call TomcatSecurityService.isCallerInRole
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TOMEE-743
>                 URL: https://issues.apache.org/jira/browse/TOMEE-743
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.5.1
>            Reporter: chunlinyao
>
> TomcatSecurityService override the createRunAsSubject and has not call the super's first.So it always create a RunAsRole principal. Its isCallerInRole only check TomcatUser and the super's isCallerInRole check Group or GroupPrincipal. Neither check the RunAsRole, so IsCallerInRole always return false.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira