[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
JLDAP DSMLWriter doesn't handle special characters
- To: OpenLDAP-software@OpenLDAP.org
- Subject: JLDAP DSMLWriter doesn't handle special characters
- From: Jon Roberts <man@mentata.com>
- Date: Mon, 19 Apr 2004 10:39:47 -0500
- User-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3.1) Gecko/20030425
Let me start by saying I continue to be pleased with JLDAP. I am
currently using the Oct 2003 JLDAP release for development, but I
checked the code from HEAD and it appears it's the same:
When I use the DSMLWriter class to output an entry as DSML, the output
contains XML special characters like &, <, >, etc. that appear in
attribute values as they are. This of course causes parsers to barf. Is
there a plan to make character substitutions in the
DSMLWriter.writeAttribute() method a la string.replaceAll("&", "&"),
or are we working under an assumption that directory attribute values
just won't contain these characters? I know a change would slow things
down significantly, but the feature unfortunately won't be useful if
arbitrary data can make it break.
There is no more embarrassing fact about me than that I am a complete
novice with CVS. Feel free to contact me offline and explain how you
would like patches submitted, and I'll be happy to read my O'Reilly CVS
book, learn how to be a *real* modern open source developer, and submit
a fix myself :)
As always, thanks for JLDAP and OpenLDAP.
Jon Roberts
www.mentata.com