You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Esa Loukkola (JIRA)" <ji...@apache.org> on 2011/02/10 09:01:57 UTC

[jira] Closed: (SHIRO-244) Typo in IniSecurityManagerFactory causes a requirement for a dummy Realm in addition to a RealmFactory

     [ https://issues.apache.org/jira/browse/SHIRO-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Esa Loukkola closed SHIRO-244.
------------------------------


Fix commited w/ SHIRO-238

> Typo in IniSecurityManagerFactory causes a requirement for a dummy Realm in addition to a RealmFactory
> ------------------------------------------------------------------------------------------------------
>
>                 Key: SHIRO-244
>                 URL: https://issues.apache.org/jira/browse/SHIRO-244
>             Project: Shiro
>          Issue Type: Bug
>          Components: Realms 
>    Affects Versions: 1.1.0
>            Reporter: Esa Loukkola
>            Priority: Minor
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> In the private addToRealms-method of IniSecurityManagerFactory, there is a check:
> Collection<Realm> factoryRealms = factory.getRealms();        
> if (!CollectionUtils.isEmpty(realms)) {
>     realms.addAll(factoryRealms);
> }
> The if-clause should be against the factoryRealms variable, as this check forces one to create a dummy Realm in the configuration file in order for the factory created Realms to be added as well.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira