DN/RDN handling is incorrect when there are some escaped values into them
-------------------------------------------------------------------------
Key: DIRSERVER-1695
URL: https://issues.apache.org/jira/browse/DIRSERVER-1695
Project: Directory ApacheDS
Issue Type: Bug
Affects Versions: 2.0.0-M5
Reporter: Emmanuel Lecharny
Priority: Blocker
Fix For: 2.0.0-M6
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira