shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Les Hazlewood (Updated) (JIRA)" <>
Subject [jira] [Updated] (SHIRO-322) Overriding permissionResolver has no effect on implicit iniRealm
Date Tue, 17 Jan 2012 19:31:40 GMT


Les Hazlewood updated SHIRO-322:

    Fix Version/s: 1.2.0
         Assignee: Les Hazlewood
> Overriding permissionResolver has no effect on implicit iniRealm
> ----------------------------------------------------------------
>                 Key: SHIRO-322
>                 URL:
>             Project: Shiro
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Philippe Laflamme
>            Assignee: Les Hazlewood
>             Fix For: 1.2.0
> Currently, the implicit iniRealm processes its role and permissions strings to early.
Overriding the permissionResolver and or rolePermissionResolver has no effect.
> The realm is constructed by calling 
> new IniRealm(ini)  (
> This constructor then calls
> processDefinition(ini) right away (
> This fills in the roles and users maps in SimpleAccountRealm, but it will use the default
permissionResolver to do so because getPermissionResolver() (
will return the default instance.
> IniRealm should probably not do any initialisation code (processDefinition) before init
is called. It overrides onInit() but tests whether the roles and users collections are empty
before doing any processing (and it will only initialise if it was constructed with a resourcePath)...

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message