directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Created: (DIRLDAP-58) getPrefix and getSuffix have inversed semantic
Date Fri, 30 Sep 2005 09:38:48 GMT
getPrefix and getSuffix have inversed semantic
----------------------------------------------

         Key: DIRLDAP-58
         URL: http://issues.apache.org/jira/browse/DIRLDAP-58
     Project: Directory LDAP
        Type: Bug
    Reporter: Emmanuel Lecharny
 Assigned to: Emmanuel Lecharny 
    Priority: Minor


The LdapName getprefix and getSuffix return a result which is inversed :
Name name = parser.parse( "cn=HomeDir,cn=John,ou=Marketing,ou=East" ) ;
Name prefix = name.getPrefix( 0 ); 
// returns "cn=HomeDir,cn=John,ou=Marketing,ou=East" instead of "".

The Names are indexed from end to start, though the element 0 is the last NameComponent.

-- 
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