You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Julien PASQUIER <ju...@wanadoo.fr> on 2007/02/08 13:55:53 UTC

BUG in RFC2253 parser

Hi,

The RFC2253 java parser of the XML Security seems to be boggus... :-(

>From RFC2253 - Section 5 (http://www.ietf.org/rfc/rfc2253.txt):
"This example shows the method of quoting of a comma in an organization name:
   CN=L. Eagle,O=Sue\, Grabbit and Runn,C=GB"

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

The OUTPUT of the RFC2253Parser is not correct !

Could you please confirm and fix this bug.

Regards,

Julien PASQUIER