rss validation

ilikebacon

Joined: 2010-01-27
Posts: 18
Posted: Sun, 2010-02-14 22:07

Hi,

Currently I am failing in my attempt to import photos to Facebook without using any external apps. They offer the ability to import via RSS to their Notes feature.

I had to try twice before the initial import would work, but it has not worked since. I'm not an RSS expert, but looking through the Facebook documentation, it's likely because the feed for the latest photos does not appear to validate.

As an example, I've used one of the Gallery3 sample sites to verify that it's not just my own:
http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.fotobank.it%2Fgallery3%2Findex.php%2Frss%2Ffeed%2Fgallery%2Flatest

The one that seems to be causing me issues is:
"media:group must have multiple media:content children"

Which has the description:
http://www.feedvalidator.org/docs/error/MediaGroupWithoutAlternatives.html

It would seem likely to me that other RSS readers or importers with strict validation would also fail because of validation issues. Has anyone else encountered this? I saw Serge's post about W3C HTML validation and was wondering if RSS validation was of concern.

Thanks.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25957
Posted: Sun, 2010-02-14 23:47

I am no RSS expert as well, but it seems to validate for me:
http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.langleycom.com%2Fgallery3%2Findex.php%2Frss%2Ffeed%2Fgallery%2Flatest
perhaps the site you are validating is not up to date?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ilikebacon

Joined: 2010-01-27
Posts: 18
Posted: Tue, 2010-02-16 01:00

Hi,

Some more information. Perhaps you can try and duplicate it as well. I believe the media:group must have multiple media:content children issue to be permission related.

Starting at line 52 of /modules/rss/views/feed.mrss.php is where the media:group block generation begins.

At the root level of my gallery, Everybody has View permissions but not View Full Size. The feed will always have the thumbnail, however at line 60, the view full access is checked. (is this in itself incorrect? I want people to be able to see the thumbnails and resized, but not the full size - why wouldn't the feed generate here?)

A hack to "fix" the issue is to stick in an empty <media:content /> element at line 77. I'm not sure what the best way to truly resolve this would be though.

AttachmentSize
Feed looks like this in Firefox with view full permissions removed enabled5.21 KB
Feed looks like this in Firefox with view full permissions enabled6.49 KB
Permissions at the root gallery12.62 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25957
Posted: Tue, 2010-02-16 03:27

Please file a bug report for this issue with steps to reproduce in the bug report.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ilikebacon

Joined: 2010-01-27
Posts: 18
Posted: Wed, 2010-02-17 03:16
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2010-02-17 06:00

fixed

 
ilikebacon

Joined: 2010-01-27
Posts: 18
Posted: Wed, 2010-02-17 23:17

Thanks for the quick repair!