You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <di...@incubator.apache.org> on 2005/09/12 22:53:48 UTC

[jira] Resolved: (DIREVE-248) Reversed operations: LdapName.getPrefix() and LdapName.getSuffix()

     [ http://issues.apache.org/jira/browse/DIREVE-248?page=all ]
     
Alex Karasulu resolved DIREVE-248:
----------------------------------

    Resolution: Fixed

Committed changes in revision 280419 here:

http://svn.apache.org/viewcvs.cgi?view=rev&rev=280419

> Reversed operations: LdapName.getPrefix() and LdapName.getSuffix()
> ------------------------------------------------------------------
>
>          Key: DIREVE-248
>          URL: http://issues.apache.org/jira/browse/DIREVE-248
>      Project: Directory Server
>         Type: Bug
>     Versions: 0.9.2
>     Reporter: Trustin Lee
>     Assignee: Alex Karasulu
>      Fix For: 0.9.3

>
> This code shows what we did wrong:
>         org.apache.ldap.common.name.LdapName name = new org.apache.ldap.common.name.LdapName( "ou=a, ou=b, ou=c" );
>         System.out.println( name.getPrefix( 1 ) );
>         System.out.println( name.getPrefix( 2 ) );
>         System.out.println( name.getSuffix( 1 ) );
>         System.out.println( name.getSuffix( 2 ) );
>         System.out.println( name.get( 0 ) );
>         System.out.println( name.get( 1 ) );
>         System.out.println( name.get( 2 ) );
>         
>         javax.naming.ldap.LdapName newName = new javax.naming.ldap.LdapName( "ou=a, ou=b, ou=c" );
>         System.out.println( newName.getPrefix( 1 ) );
>         System.out.println( newName.getPrefix( 2 ) );
>         System.out.println( newName.getSuffix( 1 ) );
>         System.out.println( newName.getSuffix( 2 ) );
>         System.out.println( newName.get( 0 ) );
>         System.out.println( newName.get( 1 ) );
>         System.out.println( newName.get( 2 ) );

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira