You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (JIRA)" <ji...@apache.org> on 2018/09/07 12:16:00 UTC

[jira] [Resolved] (FC-237) OrgUnitDAO uses case sensitive operation to determine set membership

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

Shawn McKinney resolved FC-237.
-------------------------------
    Resolution: Fixed

new code fixed the issue:

if ( dn.toLowerCase().contains( getRootDn( contextId, GlobalIds.PSU_ROOT ).toLowerCase() ) )
{

...

}
else if ( dn.toLowerCase().contains( getRootDn( contextId, GlobalIds.OSU_ROOT ).toLowerCase() ) )
{

...

}

> OrgUnitDAO uses case sensitive 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
>            Priority: Major
>
> 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)