Using escaped plus character in RDN leads to double attribute entry.
--------------------------------------------------------------------

                 Key: DIRSERVER-1442
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1442
             Project: Directory ApacheDS
          Issue Type: Sub-task
          Components: core
    Affects Versions: 1.5.5
         Environment: WinXPx64, JDK 1_5_0_22, Tomcat 5.0.19, ADS 1.5.5, 
ADStudio 1.5.0.v20091102

A partition of type:
objectClass=dcObject
objectClass=organization
objectClass=top
dc=example
o=org 
            Reporter: Günter Albrecht
            Priority: Critical


3. scenario - escaped plus character somewhere in the RDN attribute:

  public void insert() {
    Attributes attributes = new BasicAttributes(false);
    attributes.put(createObjectClassPerson());
    attributes.put("cn", "John\\+Doe");
    attributes.put("sn", "\\+Name\\+");
    try {
      getLdapContext().createSubcontext("cn=John\\+Doe", attributes);
    }
    catch (NamingException e) {
      e.printStackTrace();
    }
  }

The result is an entry with two cn attributes, one with a plus and the other 
one with an escaped plus. Also a warning appears
WARN [org.apache.directory.server.core.normalization.NormalizationInterceptor] 
- The RDN 'cn=John\+Doe' is not present in the entry.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to