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
Assigned to: 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
|