RSS feed parser noise

Bug #548107 reported by Nigel-catalyst
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Richard Mansfield

Bug Description

[WAR] 7d (lib/pear/XML/Feed/Parser.php:95) DOMDocument::loadXML(): Empty string supplied as input
Call stack (most recent first):
  * log_message("DOMDocument::loadXML(): Empty string supplied as i...", 8, true, true, "/var/www/mahara-site-myportfolio-ac-nz/lib/pear/XM...", 95) at /var/www/mahara-site-myportfolio-ac-nz/lib/errors.php:378
  * error(2, "DOMDocument::loadXML(): Empty string supplied as i...", "/var/www/mahara-site-myportfolio-ac-nz/lib/pear/XM...", 95, array(size 5)) at Unknown:0
  * DOMDocument->loadXML("", 96) at /var/www/mahara-site-myportfolio-ac-nz/lib/pear/XML/Feed/Parser.php:95
  * XML_Feed_Parser->__construct("", false, true, false) at /var/www/mahara-site-myportfolio-ac-nz/blocktype/externalfeed/lib.php:275
  * PluginBlocktypeExternalfeed::parse_feed("http://feeds.feedburner.com/SarahsMusings?format=x...") at /var/www/mahara-site-myportfolio-ac-nz/blocktype/externalfeed/lib.php:211
  * PluginBlocktypeExternalfeed::refresh_feeds() at Unknown:0
  * call_user_func_array(array(size 2), array(size 0)) at /var/www/mahara-site-myportfolio-ac-nz/lib/mahara.php:975
  * call_static_method("PluginBlocktypeExternalfeed", "refresh_feeds") at /var/www/mahara-site-myportfolio-ac-nz/lib/cron.php:90

Looks like that feed supplies a blank page with status code 200 maybe? If feeds return nothing we should abort parsing it.

tags: removed: mahara-eduforge-bug
description: updated
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.