New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmlrpclib loads invalid documents #50017
Comments
Prior versions of xmlrpclib.loads would raise an exception when passed exarkun@bigdog24:~/_trial_temp$ python2.4 -c 'from xmlrpclib import
loads; loads("\x00\n<methodResponse>\n <params>\n <param>\n </param>\n
</params>\n</methodResponse>\n")'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/usr/lib/python2.4/xmlrpclib.py", line 1079, in loads
p.feed(data)
File "/usr/lib/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 2,
column 0 However, as of the most recent Python 2.5 and Python 2.6 point releases, exarkun@bigdog24: Previous versions of Python 2.5 and Python 2.6 did not exhibit this |
This actually appears to be an issue with the sgmlop-based parser, not Perhaps this bug should be closed as invalid, then. Only, I wonder if |
sgmlop doesn't do much validation; to quote the homepage: "[sgmlop] is But given that Python ships with cElementTree these days, and |
+1 |
Here's a patch which removes sgmlop support from xmlrpclib. |
Applied in r73201, r73202. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: