[ 
https://issues.apache.org/jira/browse/DIRSERVER-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Norval Hope updated DIRSERVER-1256:
-----------------------------------

    Attachment: DIRSERVER-1256.patch

The attached patch is made from the trunk root an fixes the issue. I have added 
another matching test to LdapDnParserTest.java and it turned out that parsing 
at the DN implementation level (rather then RDN) was already working.

This issue of where to turn int error return into an exception is open to 
multiple solutions. I chose to do it in RDNParser where there was a void parse 
method, but alternatively that method could be changed to return an int and it 
could be done higher up the callstack.

> bad # hex escape in RDN doesn't throw InvalidNameException
> ----------------------------------------------------------
>
>                 Key: DIRSERVER-1256
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1256
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.5.4
>            Reporter: Norval Hope
>            Priority: Minor
>         Attachments: DIRSERVER-1256.patch
>
>   Original Estimate: 0.03h
>  Remaining Estimate: 0.03h
>
> RDNs like "a=#zz" don't result in an exception when they should (either the 
> 'z's need to be replaced by valid hex digits or should be "a=\#zz").

-- 
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