[Date Prev][Date Next] [Chronological] [Thread] [Top]

JLDAP DSMLWriter doesn't handle XML special characters (ITS#3099)



Full_Name: Jon Roberts
Version: n/a
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (68.1.36.89)


Using the DSMLWriter class to output an entries as DSML, the output contains XML
special characters like &, <, >, etc. that appear in attribute values as they
are. The appearance of these characters within attribute values cause XML parser
failures. The error can be demonstrated by using the class to express a
directory entry with an attribute containing special characters and then trying
to view the resulting document in a browser like Mozilla. The class should
modify attribute values to replace all instances of the characters &, <, >, and
" with "&amp";, "&lt;", "gt;", "&quot;" respectively in attribute values before
sending them to output.

I will try to create a patch myself, but it will take some time.