Shawn McKinney created FC-237:
---------------------------------

             Summary: OrgUnitDAO uses case senstive operation to determine set 
membership
                 Key: FC-237
                 URL: https://issues.apache.org/jira/browse/FC-237
             Project: FORTRESS
          Issue Type: Bug
    Affects Versions: 2.0.1
            Reporter: Shawn McKinney
            Assignee: Shawn McKinney


Fix the code under todo to be case insensitive:

   private OrgUnit getEntityFromLdapEntry( Entry le, long sequence, String 
contextId )
    {

       ...
        // TODO: the dn.contains is case sensitive which needs to be fixed:
        if ( dn.contains( getRootDn( contextId, GlobalIds.PSU_ROOT ) ) )
        {
            entity.setType( OrgUnit.Type.PERM );
        }
        else if ( dn.contains( getRootDn( contextId, GlobalIds.OSU_ROOT ) ) )
        {
            entity.setType( OrgUnit.Type.USER );
        }
        return entity;
    }
}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to