|
[
Permlink
| « Hide
]
Stefan Zoerner added a comment - 02/Jun/06 09:56 PM
This is the JUnit test using JNDI ops to create entries with special characters in their RDNs.
Stefan Zoerner made changes - 02/Jun/06 09:56 PM
This is a really bad problem we have ...
Some explainations on how DN should be treated can be found here : http://docs.safehaus.org/display/APACHEDS/DN+normalization+and+parsing This is supposed to be done this way, but it's not. The normalizationService does not transform the DN accordingly to the AttributeType. Changing that will cost time, and tests. Unless I'm totally wrong, of course :)
Emmanuel Lecharny made changes - 16/Aug/06 06:34 PM
The code has been modified to handle the vast majority of the cases. However, I still have an issue remaining : escaped hexPairs.
For instance, the DN : cn=L\C3\E9charny should have this internal value : cn=Lécharny no? But in this case, what about : cn=L\C3charny It should generate an exception, because \C3 is not a valid UTF-8 multi-byte char, no? wdyt ? PS: the code has not been committed Yes if it is not a UTF-8 multibyte char then it is invalid. I would through an exception on this one. If the attribute is binary does not matter.
Ok, I think it has been solved, but it needs a full load of unit tests...
Emmanuel Lecharny made changes - 20/Aug/06 10:12 PM
This has been fixed by Emmanuel and Alex more than a month ago.
Stefan Zoerner made changes - 02/Oct/06 01:07 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||