[New-bugs-announce] [issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

Panos Christeas report at bugs.python.org
Fri Apr 8 11:33:03 CEST 2011


New submission from Panos Christeas <xrg at hellug.gr>:

The expat library (in C level) is not xml 1.1 compliant, meaning that
it won't accept characters \x01-\x08,\x0b,\x0c and \x0e-\x1f .
At the same time, ElementTree (or custom XML creation, such as in xmlrpclib.py:694) allow these characters to pass through. They will get blocked on the receiving side.
Since 2.7, the expat library is the default parser for xml-rpc, so it
this is a regression, IMHO. According to the network principal, we should
accept these characters gracefully.

The attached test script demonstrates that we're not xml 1.1 compliant (but instead enforce the more strict 1.0 rule)

References:
http://bugs.python.org/issue5166
http://en.wikipedia.org/wiki/Valid_characters_in_XML

----------
components: XML
files: expat-test.py
messages: 133301
nosy: xrg
priority: normal
severity: normal
status: open
title: expat parser not xml 1.1 (breaks xmlrpclib)
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file21580/expat-test.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11804>
_______________________________________


More information about the New-bugs-announce mailing list