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

        

Reply via email to