?
avatar EmilMassey
EmilMassey
3 Mar 2016

Steps to reproduce the issue

  1. Add http://albertslund.lokalavisen.dk/section/senestenytrss as RSS feed URL
  2. Visit the site where the module should be rendered

Expected result

No errors should be displayed to the website visitor - module should be rendered normally or not rendered at all.

Actual result

Fatal error: DateTime::__construct(): Failed to parse time string (Tor, 03 Mar 2016 10:46:33) at position 0 (T): The timezone could not be found in the database

Additional comments

The problem here is that given feed is incorrect - the dates are inconsistent and some of them are in danish (day of week, e.g. Tor instead of Thu). According to RSS 2.0 at Harvard Law Specification, "All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred).".

The parser should be prepared for a case when a RSS feed doesn't meet a specification.

avatar EmilMassey EmilMassey - open - 3 Mar 2016
avatar EmilMassey
EmilMassey - comment - 3 Mar 2016

#9293 fixed for an incorrect date format, but it has to be tested if other non-standard RSS fields are not causing any problems.

avatar brianteeman
brianteeman - comment - 3 Mar 2016

Closed as we have a PR for testing #9293


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

avatar brianteeman brianteeman - change - 3 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-03 19:28:46
Closed_By brianteeman
avatar brianteeman brianteeman - close - 3 Mar 2016
avatar brianteeman brianteeman - close - 3 Mar 2016
avatar brianteeman brianteeman - change - 8 Mar 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment