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/02/25 16:00:20 UTC

[jira] [Resolved] (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:all-tabpanel ]

Romain Manni-Bucau resolved TOMEE-743.
--------------------------------------

    Resolution: Fixed
    
> 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
>            Assignee: Romain Manni-Bucau
>             Fix For: 1.6.0
>
>
> 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