Closed (fixed)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2009 at 22:11 UTC
Updated:
8 Feb 2010 at 20:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
michelleI've been trying to track this down. I haven't figured out the problem, yet, but will record what I have so far.
<dc:creator>NAME</dc:creator>I need to get to bed but I'll try to trace it back further tomorrow since this is a really key item for me to give proper credit.
Michelle
Comment #2
michelleOne more step then I must sleep.
In common_syndication_parser_parse, $string contains the dc:creator but then it's passed into simplexml_load_string() and the resulting $xml does not have the dc:creator. I can't find simplexml_load_string() anywhere, though, so I'm stuck for the moment.
Michelle
Comment #3
michelleAfter talking to RobLoach on IRC, it turns out that simplexml_load_string() is a PHP function. Since it's that function that's not recognizing "creator", I don't know where to go from here. I could really use some input from the maintainer(s).
Thanks,
Michelle
Comment #4
michelleHere's some info on creator: http://www.rssboard.org/rss-profile#namespace-elements-dublin-creator
Michelle
Comment #5
alex_b commentedMichelle - OTOH - you must register the namespace of tags that you would like to parse. SimpleXML will ignore tags of namespaces it doesn't know anything about.
Comment #6
michelleHow do I do that? And why doesn't it know it already? From what I can tell, "dc:creator" is a standard and common tag in RSS feeds. It's not something custom I'm doing. It seems like Feeds should be able to handle it by default. I'm willing to help make that happen but I'm brand new to RSS outside of the Opera feed reader so I'm fumbling in the dark here quite a bit.
Michelle
Comment #7
bigkevmcd commentedI'm attaching a patch which fixes two issues:
1) the RSS parser was using "author" as the author key, but the mapper expects "author_name", there are no tests for the behaviour of "author_name" in the current code base...
2) We attempt to parse the dc:Creator if there's no author element.
Currently a lot of tests are failing without this patch on HEAD, if this can be resolved, I'll happily add some tests for both these fixes.
Comment #8
michelleI've been speaking to bigkevmcd on IRC and can confirm this patch fixes the issue for me. I'd like to see this committed since I hate running patched modules if I can avoid it. :)
Michelle
Comment #9
alex_b commentedShould go into next release. Bumping to critical.
Comment #10
michelleAwesome, thanks!
Michelle
Comment #11
alex_b commentedCommitted, thank you. bigkevmcd: if you're still up for tests, I'd be happy to receive patches.