[Date Prev][Date Next]
JLDAP DSMLWriter doesn't handle XML special characters (ITS#3099)
Full_Name: Jon Roberts
Submission from: (NULL) (126.96.36.199)
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 "&";, "<", "gt;", """ respectively in attribute values before
sending them to output.
I will try to create a patch myself, but it will take some time.