Issue Details (XML | Word | Printable)

Key: DIRSERVER-314
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Alex Karasulu
Reporter: Trustin Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Reversed operations: LdapName.getPrefix() and LdapName.getSuffix()

Created: 10/Sep/05 11:52 AM   Updated: 10/Feb/06 12:34 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 14/Sep/05 08:43 PM


 Description  « Hide
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 ) );


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order