? Success

User tests: Successful: Unsuccessful:

avatar rishantagarwal
rishantagarwal
19 Mar 2014

Tracker code : # 33478

Joomla RSS feed contains invalid UTF-8 characters in URL, these fail validation and prevent certain libraries from using the feeds.
Assuming you have a category ID 173 which contains an article with an unicode alias, with an url like:
http://example.com/index.php?option=com_content&view=category&id=173&format=feed&type=rss&lang=en
http://validator.w3.org/feed will return the following errors:
This feed does not validate.
line 25, column 101: link must be a full and valid URL: http://example.com/company/news/1185-soso-ibérica-opens-new-fishing-garden
line 26, column 120: guid must be a full URL, unless isPermaLink attribute is false: http://example.com/company/news/1185-soso-ibérica-opens-new-fishing-garden

How to reproduce the problem and/or test the patch::
Setup a Joomla 3.2.3 with unicode aliases enabled in the global configuration; Create an article with a unicode character in the alias e.g. 'à' Run the rss feed through http://validator.w3.org/feed It will fail to validate both (link) and (guid)

avatar bindasrishant bindasrishant - open - 19 Mar 2014
avatar Bakual
Bakual - comment - 19 Mar 2014

That's the same as #3320?

avatar bindasrishant bindasrishant - change - 19 Mar 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-03-19 09:21:52
avatar bindasrishant bindasrishant - close - 19 Mar 2014
avatar bindasrishant bindasrishant - close - 19 Mar 2014
avatar bindasrishant bindasrishant - change - 19 Mar 2014
Status Closed New
avatar bindasrishant bindasrishant - reopen - 19 Mar 2014
avatar bindasrishant bindasrishant - reopen - 19 Mar 2014
avatar bindasrishant
bindasrishant - comment - 19 Mar 2014

There is some difference in the code in both the files. Please have a look into it.

avatar Bakual
Bakual - comment - 19 Mar 2014

@infograf768 Can you check if this solution is better than yours? I think we should only have one PR active.

@bindasrishant I saw that you used spaces to indent the code. We use tabs instead according to out coding standards (http://joomla.github.io/coding-standards/). Can you please update the PR with that?
I also noted that the other PR from Jean-Marie does the change for both RSS and Atom feeds, while yours only changes RSS. I think it does make sense to apply this change to both feed types?

avatar infograf768
infograf768 - comment - 19 Mar 2014

This PR does not work at all, not only the issue with deprecated function split(), but also the str_replace, etc.
Mine needs more improvements to get full validation.

avatar bwmarkle
bwmarkle - comment - 19 Mar 2014

I replicated issue, tested patch 3331, and found it resolves the issue.
You may blame the J!Tracker Application for transmitting this comment.

avatar bindasrishant bindasrishant - change - 19 Mar 2014
Status New Closed
Closed_Date 2014-03-19 09:21:52 2014-03-19 20:25:35
avatar bindasrishant bindasrishant - close - 19 Mar 2014
avatar bindasrishant bindasrishant - close - 19 Mar 2014
avatar bindasrishant bindasrishant - head_ref_deleted - 19 Mar 2014
avatar infograf768
infograf768 - comment - 20 Mar 2014

Please test again, sef on and sef off (I improved the PR)
#3320

And comment in tracker
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33478&start=0

Add a Comment

Login with GitHub to post a comment