[feeds] Should provide "this doesn't look like a feed" error

Bug #370383 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Released
Low
Stefano Rivera

Bug Description

2009-05-01 14:46:15,677 DEBUG source.titan: Received message from seed in private: add feed http://rsa.cricinfo.com/ci/content/page/381868.html
 as cricinfo
2009-05-01 14:46:15,692 INFO core.auth: Checking feeds permission for None/2632 (seed): yes
2009-05-01 14:46:25,950 ERROR core.dispatcher: Exception occured in Manage processor of feeds plugin
Traceback (most recent call last):
  File "/home/stefanor/projects/ibid/dc-source/ibid/core.py", line 22, in _process
    processor.process(event)
  File "/home/stefanor/projects/ibid/dc-source/ibid/plugins/__init__.py", line 55, in process
    method(event, *match.groups())
  File "/home/stefanor/projects/ibid/dc-source/ibid/plugins/feeds.py", line 69, in add
    soup = get_html_parse_tree(url)
  File "/home/stefanor/projects/ibid/dc-source/ibid/utils.py", line 155, in get_html_parse_tree
    return BeautifulSoup(data, convertEntities=BeautifulSoup.HTML_ENTITIES)
  File "/usr/lib/pymodules/python2.5/BeautifulSoup.py", line 1499, in __init__
    BeautifulStoneSoup.__init__(self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.5/BeautifulSoup.py", line 1230, in __init__
    self._feed(isHTML=isHTML)
  File "/usr/lib/pymodules/python2.5/BeautifulSoup.py", line 1263, in _feed
    self.builder.feed(markup)
  File "/usr/lib/python2.5/HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "/usr/lib/python2.5/HTMLParser.py", line 150, in goahead
    k = self.parse_endtag(i)
  File "/usr/lib/python2.5/HTMLParser.py", line 314, in parse_endtag
    self.error("bad end tag: %r" % (rawdata[i:j],))
  File "/usr/lib/python2.5/HTMLParser.py", line 115, in error
    raise HTMLParseError(message, self.getpos())
HTMLParseError: bad end tag: u"</scr' + 'ipt>", at line 58, column 70
2009-05-01 14:46:26,070 WARNING plugins.unicode: Found a non-unicode string: exception
2009-05-01 14:46:26,070 DEBUG core.dispatcher: {'message_raw': u'add feed http://rsa.cricinfo.com/ci/content/page/381868.html as cricinfo', 'account': None, 'responses': [{'reply': u"That didn't go down very well. Burp.", 'target': u'seed', 'source': u'titan'}], 'complain': 'exception', 'source': u'titan', 'addressed': True, 'processed': True, 'time': 1241181975.6780961, 'identity': 2632, 'message': u'add feed http://rsa.cric:

Changed in ibid:
assignee: nobody → Stefano Rivera (stefanor)
status: New → In Progress
Changed in ibid:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.