Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
title: xmlrpclib expat - xmlrpclib loads invalid documents
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5767
___
Georg Brandl ge...@python.org added the comment:
Applied in r73201, r73202.
--
nosy: +georg.brandl
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5767
Jean-Paul Calderone exar...@divmod.com added the comment:
Here's a patch which removes sgmlop support from xmlrpclib.
--
keywords: +patch
Added file: http://bugs.python.org/file14023/xmlrpclib.patch
___
Python tracker rep...@bugs.python.org
Jean-Paul Calderone exar...@divmod.com added the comment:
This actually appears to be an issue with the sgmlop-based parser, not
the expat-based parser. After removing sgmlop, the exception-raising
behavior is restored.
Perhaps this bug should be closed as invalid, then. Only, I wonder if
Fredrik Lundh fred...@effbot.org added the comment:
sgmlop doesn't do much validation; to quote the homepage: [sgmlop] is
tolerant, and happily accepts XML-like data that are not well-formed. If
you need strictness, use another parser.
But given that Python ships with cElementTree these days,
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
maybe it's time to remove sgmlop support from xmlrpclib...
+1
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5767
New submission from Jean-Paul Calderone exar...@divmod.com:
Prior versions of xmlrpclib.loads would raise an exception when passed
malformed documents:
exar...@bigdog24:~/_trial_temp$ python2.4 -c 'from xmlrpclib import
loads; loads(\x00\nmethodResponse\n params\n param\n /param\n