ericmckean / pubsubhubbub

Automatically exported from code.google.com/p/pubsubhubbub
Other
0 stars 0 forks source link

Disable external entities in all feed parsing #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[Errno 2] No such file or directory: 'DTD/xhtml1-transitional.dtd'
Traceback (most recent call last):
  File
"/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line
509, in __call__
    handler.post(*groups)
  File
"/base/data/home/apps/pubsubhubbub/feed-ids.336509416155746202/main.py",
line 318, in decorated
    return func(myself, *args, **kwargs)
  File
"/base/data/home/apps/pubsubhubbub/feed-ids.336509416155746202/main.py",
line 2509, in post
    feed_id = feed_identifier.identify(response.content, feed_type)
  File
"/base/data/home/apps/pubsubhubbub/feed-ids.336509416155746202/feed_identifier.p
y",
line 114, in identify
    parser.parse(data_stream)
  File "/base/python_dist/lib/python2.5/xml/sax/expatreader.py", line 107,
in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/base/python_dist/lib/python2.5/xml/sax/xmlreader.py", line 123, in
parse
    self.feed(buffer)
  File "/base/python_dist/lib/python2.5/xml/sax/expatreader.py", line 207,
in feed
    self._parser.Parse(data, isFinal)
  File "/base/python_dist/lib/python2.5/xml/sax/expatreader.py", line 381,
in external_entity_ref
    "")
  File "/base/python_dist/lib/python2.5/xml/sax/saxutils.py", line 298, in
prepare_input_source
    f = urllib.urlopen(source.getSystemId())
  File "/base/python_dist/lib/python2.5/urllib.py", line 82, in urlopen
    return opener.open(url)
  File "/base/python_dist/lib/python2.5/urllib.py", line 190, in open
    return getattr(self, name)(url)
  File "/base/python_dist/lib/python2.5/urllib.py", line 459, in open_file
    return self.open_local_file(url)
  File "/base/python_dist/lib/python2.5/urllib.py", line 473, in
open_local_file
    raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] No such file or directory: 'DTD/xhtml1-transitional.dtd'

Original issue reported on code.google.com by bslatkin on 22 Sep 2009 at 5:06

GoogleCodeExporter commented 9 years ago
Fixed in r290

Original comment by bslatkin on 26 Oct 2009 at 3:57