Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-206

getPrefix and getSuffix have inversed semantic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • pre-1.0
    • pre-1.0
    • ldap
    • None

    Description

      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.

      Attachments

        Activity

          People

            elecharny Emmanuel Lécharny
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: