Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1699

DN/RDN handling is incorrect when there are some escaped values into them

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M5
    • Fix Version/s: 2.0.0-M6
    • Component/s: None
    • Labels:
      None

      Description

      Creating an entry which DN is :
      cn=a+B,ou=system
      leads to an entry containing the following cn :
      cn: a+b
      which is not good, because the expected value is a+B

      This is due to the fact that we store the normalized RDN value instead of the upValue.

      It goes a bit farther though : the way we handle DN and RDN is bogs wrt values : we should store the UP value without the escape chars (), and this is not what we store.

      For instance, the following RDN :
      cn=a+B
      will have a upValue -> a+B instead of a+B
      and a normValue -> a+b

      The normValue is correct, but there is a confusion between the upValue and the escapedValue, which is only use when printing RDN, not when manipulating them.

        Activity

        Emmanuel Lecharny created issue -
        Emmanuel Lecharny made changes -
        Field Original Value New Value
        Project Directory ApacheDS [ 12310260 ] Directory Client API [ 12310962 ]
        Key DIRSERVER-1695 DIRAPI-81
        Affects Version/s 1.0.0-M10 [ 12319495 ]
        Affects Version/s 2.0.0-M5 [ 12319508 ]
        Fix Version/s 1.0.0-M11 [ 12319496 ]
        Fix Version/s 2.0.0-M6 [ 12319540 ]
        Emmanuel Lecharny made changes -
        Project Directory Client API [ 12310962 ] Directory ApacheDS [ 12310260 ]
        Key DIRAPI-81 DIRSERVER-1699
        Affects Version/s 2.0.0-M5 [ 12319508 ]
        Affects Version/s 1.0.0-M10 [ 12319495 ]
        Fix Version/s 2.0.0-M6 [ 12319540 ]
        Fix Version/s 1.0.0-M11 [ 12319496 ]
        Show
        Emmanuel Lecharny added a comment - Fixed with http://svn.apache.org/viewvc?rev=1292346&view=rev
        Emmanuel Lecharny made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Emmanuel Lecharny made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development