This page is no longer maintained — Please continue to the home page at www.scala-lang.org

[scala-bts] #3014: The XML Utility.escape method does not treat control characters properly

6 replies
Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.

-------------------+--------------------------------------------------------
Reporter: dpp | Owner: scala-xml_team
Type: defect | Status: new
Priority: normal | Component: XML support
Keywords: |
-------------------+--------------------------------------------------------
Control characters (other than \r, \n and \t) are illegal in XML. The
Utility.escape method does not filter these characters, leading to illegal
XML.

The enclosed patch filters control characters from XML output and improves
performance over the 2.7.7 implementation by 3x and the 2.8 implementation
by 4x (as benchmarked by the attached file)

Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.
Re: [scala-bts] #3014: The XML Utility.escape method does not tr

-------------------+--------------------------------------------------------
Reporter: dpp | Owner: scala-xml_team
Type: defect | Status: new
Priority: normal | Component: XML support
Keywords: |
-------------------+--------------------------------------------------------
Changes (by ijuma):

* cc: mlists@… (added)

Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.
Re: [scala-bts] #3014: The XML Utility.escape method does not tr

-------------------+--------------------------------------------------------
Reporter: dpp | Owner: scala-xml_team
Type: defect | Status: new
Priority: normal | Component: XML support
Keywords: |
-------------------+--------------------------------------------------------
Changes (by loverdos):

* cc: loverdos@… (added)

Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.
Re: [scala-bts] #3014: The XML Utility.escape method does not tr

-------------------+--------------------------------------------------------
Reporter: dpp | Owner: scala-xml_team
Type: defect | Status: new
Priority: normal | Component: XML support
Keywords: |
-------------------+--------------------------------------------------------
Changes (by harrah):

* cc: harrah@… (added)

Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.
Re: [scala-bts] #3014: The XML Utility.escape method does not tr

-------------------+--------------------------------------------------------
Reporter: dpp | Owner: scala-xml_team
Type: defect | Status: new
Priority: normal | Component: XML support
Keywords: |
-------------------+--------------------------------------------------------
Changes (by indrajitr):

* cc: irc@… (added)

Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.
Re: [scala-bts] #3014: The XML Utility.escape method does not tr

-------------------+--------------------------------------------------------
Reporter: dpp | Owner: scala-xml_team
Type: defect | Status: new
Priority: normal | Component: XML support
Keywords: |
-------------------+--------------------------------------------------------
Changes (by jeortiz):

* cc: jorge.ortiz@… (added)

Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.
Re: [scala-bts] #3014: The XML Utility.escape method does not tr

---------------------+------------------------------------------------------
Reporter: dpp | Owner: scala-xml_team
Type: defect | Status: closed
Priority: normal | Component: XML support
Resolution: fixed | Keywords:
---------------------+------------------------------------------------------
Changes (by dpp):

* status: new => closed
* resolution: => fixed

Comment:

(In [20780]) Fixed XML Utility.escape method to conform to XML spec.
Closes #3014

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland