directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Reopened: (DIREVE-248) Reversed operations: LdapName.getPrefix() and LdapName.getSuffix()
Date Wed, 14 Sep 2005 11:43:58 GMT
     [ http://issues.apache.org/jira/browse/DIREVE-248?page=all ]
     
Trustin Lee reopened DIREVE-248:
--------------------------------


It is shouldn't be 'fixed' but 'duplicate' because we've found DIR-112 is the same one.

> 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


Mime
View raw message