[issue5767] xmlrpclib loads invalid documents

2012-05-24 Thread Amaury Forgeot d'Arc

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5767] xmlrpclib loads invalid documents

2009-06-04 Thread Georg Brandl

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5767] xmlrpclib loads invalid documents

2009-05-20 Thread Jean-Paul Calderone

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
http://bugs.python.org/issue5767
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5767] xmlrpclib loads invalid documents

2009-04-16 Thread Jean-Paul Calderone

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
this is the right bug tracker to use for sgmlop, or if it has one
somewhere else?

--
nosy: +effbot

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5767
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5767] xmlrpclib loads invalid documents

2009-04-16 Thread Fredrik Lundh

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, and 
cElementTree's XMLParser (based on expat) is faster than both sgmlop and 
pyexpat, maybe it's time to remove sgmlop support from xmlrpclib...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5767
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5767] xmlrpclib loads invalid documents

2009-04-16 Thread Raymond Hettinger

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5767] xmlrpclib loads invalid documents

2009-04-15 Thread Jean-Paul Calderone

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
/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,
this is no longer the case:

exar...@bigdog24:~/_trial_temp$ python2.5 -c 'from xmlrpclib import
loads; loads(\x00\nmethodResponse\n params\n  param\n  /param\n
/params\n/methodResponse\n)'
exar...@bigdog24:~/_trial_temp$ python2.6 -c 'from xmlrpclib import
loads; loads(\x00\nmethodResponse\n params\n  param\n  /param\n
/params\n/methodResponse\n)'
exar...@bigdog24:~/_trial_temp$

Previous versions of Python 2.5 and Python 2.6 did not exhibit this
misbehavior.

--
components: Library (Lib)
messages: 86010
nosy: exarkun
severity: normal
status: open
title: xmlrpclib loads invalid documents
type: behavior
versions: Python 2.5, Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5767
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com