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=35921>. 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=35921 Summary: escaping comma in xml tag attributes does not work Product: Commons Version: 1.1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Configuration AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] First of all, I know that is as already been discuted, but calling config.getString(key) really should not tokenize value and return the first string. But I know the implication of this modification to jakarta projects using this method, so I will stop here. With a configuration like this: <tag attribute1="a,b,c" attribute2="a\,b\,c"/> <element1>a,b,c</element1> <element2>a\,b\,c<element2> </tag> I would expect : config.getString("attribute1") = "a" config.getString("attribute2") = "a,b,c" config.getString("element1") = "a" config.getString("element2") = "a,b,c" But I have config.getString("attribute1") = "a" config.getString("attribute2") = "a" config.getString("element1") = "a" config.getString("element2") = "a,b,c" Escaping the comma does not work into tag attributes I think the problem is within XMLConfiguration#processAttributes(Node,Element), nothing here checks is the comma is escaped -- 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
