Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14547

3.10.1 - RSS Import CData Element

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • None
    • Cronjobs
    • 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

        Activity

          People

            unknown unknown
            darreno darreno
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: