shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Esa Loukkola (JIRA)" <j...@apache.org>
Subject [jira] Closed: (SHIRO-244) Typo in IniSecurityManagerFactory causes a requirement for a dummy Realm in addition to a RealmFactory
Date Thu, 10 Feb 2011 08:01:57 GMT

     [ 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

        

Mime
View raw message