Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
None
-
None
-
None
-
Operating System: GNU/Linux
PHP Version: (please be specific, like '4.4.3' or '5.1.5') 4.3.9
Database and version: MySQL 4.1.20
Browser (and version): IE6 and Firefox 3.0.6
Description
Hi,
I have encountered an issue when I tried to Import a RSS feed with description contained within a CData[].
The import is successful, however with the description being imported twice.
Simplified Example:
RSS Feed element's value:
CData [
RSS import test
]
eZ Publish imported value:
RSS import testRSS import test
I have tried to look at the cronjob for the rssimport.php and located that in function recursiveFindRSSElementValue, there is a liner
$resultText = is_object( $element ) ? $element->textContent() . getCDATA( $element ) : false;
Based on my interpretation, it seems that this liner trying to put assign nonCData and CData to $resultText. An assumption is made that if the element is CData, $element->textContent() will return empty string. This is vice versa.
Is my understanding correct? If not, how can I fix this issue?
Thanks!
Steps to reproduce
Upload a RSS 0.92 feed containing CData.
Check the data in eZ Publish after the cronjob is run.
Attachments
Issue Links
- relates to
-
EZP-12489 eZDOMNode#textContent() doesnt return CDATA
- Closed