commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35921] New: - escaping comma in xml tag attributes does not work
Date Thu, 28 Jul 2005 18:30:32 GMT
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: commons-dev@jakarta.apache.org
        ReportedBy: fabien.nisol@videotron.ca


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message