? Success
Pull Request for # 5939

User tests: Successful: Unsuccessful:

avatar DannyBoyk
DannyBoyk
18 May 2015

Change initial XMLReader loop to properly handle bad RSS feeds. Current loop will loop indefinitely until memory is exhausted.
http://issues.joomla.org/tracker/joomla-cms/5939


Steps to reproduce the issue

Ad a new "Module Feed Display" and set as Feed URL: http://www.google.com/robots.txt

Expected result

Message "Feed not available" in module position

Actual result

Site crash

Warning: XMLReader::read(): An Error Occurred while reading in \libraries\joomla\feed\factory.php on line 71

System information (as much as possible)

Joomla 3.3.6 / Apache 2.4.4 / PHP 5.5.3 / MySQL 5.6.11

Additional comments

We include a newsfeed which is sometimes down. In this case the feed-server returns a page with text/plain content - and our site crashes.
It makes no difference to include feed via module or via News Feed Manager.

avatar DannyBoyk DannyBoyk - open - 18 May 2015
avatar zero-24 zero-24 - change - 18 May 2015
The description was changed
Title
Update factory.php to fix #5939
Fix Feed-reader crashes site if source is not a newsfeed
Labels Added: ?
avatar zero-24 zero-24 - change - 18 May 2015
Category Libraries
avatar zero-24 zero-24 - change - 18 May 2015
Status New Pending
Easy No Yes
avatar zero-24 zero-24 - change - 18 May 2015
Rel_Number 0 5939
Relation Type Pull Request for
avatar pe7er
pe7er - comment - 18 May 2015

@test ok!

I was able to reproduce the problem in Joomla 3.4.2dev with both
Feed Display Module and with Menu Item of type Single News Feed.

Adding http://www.google.com/robots.txt as URL Feed resulted with both in the error:
Fatal error: Maximum execution time of 30 seconds exceeded in /libraries/joomla/feed/factory.php on line 72

After the patch the error has been solved & you'll get a notification instead:

Feed Display Module

screen shot 2015-05-18 at 13 15 20

Menu Item of type Single News Feed

screen shot 2015-05-18 at 13 15 20


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6980.

avatar pe7er pe7er - test_item - 18 May 2015 - Tested successfully
avatar brianteeman
brianteeman - comment - 23 May 2015

Issue confirmed
PR resolves issue
Valid feeds are displayed and invalid feeds get the error message instead of the loop


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6980.

avatar brianteeman brianteeman - test_item - 23 May 2015 - Tested successfully
avatar brianteeman brianteeman - change - 23 May 2015
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 23 May 2015

Setting RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6980.

avatar brianteeman brianteeman - change - 23 May 2015
Labels Added: ?
avatar zero-24 zero-24 - close - 25 May 2015
avatar wilsonge wilsonge - change - 25 May 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-05-25 00:20:37
Closed_By wilsonge
avatar wilsonge wilsonge - close - 25 May 2015
avatar wilsonge
wilsonge - comment - 25 May 2015

Merged - thanks!

avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment