You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2007/02/09 19:10:21 UTC

DO NOT REPLY [Bug 41570] - RFC2253 Java Parser

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41570>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41570


sean.mullan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From sean.mullan@sun.com  2007-02-09 10:10 -------
In my opinion, this is not a bug. The purpose of RFC2253.normalize is to
convert an RFC 1779 String to an RFC 2253 String. This DN is not a compliant
RFC 1779 String. You need to enclose the value containing a comma in quotes. See
section 4 of RFC 2253 (Relationship with RFC 1779 and LDAPv2), last paragraph:

   Implementations MUST allow a value to be surrounded by quote ('"'
   ASCII 34) characters, which are not part of the value.  Inside the
   quoted value, the following characters can occur without any
   escaping:

                   ",", "=", "+", "<", ">", "#" and ";"

If I change your code to the following, it works correctly:

String dn = "CN=L. Eagle,O="Sue, Grabbit and Runn",C=GB";
System.out.println("INPUT: " + dn);
System.out.println("OUTPUT: " + RFC2253Parser.normalize(dn));

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.