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] Created: (SHIRO-244) Typo in IniSecurityManagerFactory causes a requirement for a dummy Realm in addition to a RealmFactory
Date Thu, 10 Feb 2011 07:52:00 GMT
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


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