Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-10761

jcr diff 1.01.xx - Failed to read cdata value if a cdata value is an empty string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: Ongoing
    • Fix Version/s: jcrdiff-1.01.06
    • Component/s: jcrdiff
    • Labels:
      None
    • Story Points:
      0.5
    • Processed by team:
      Pulsar
    • Sprint:
      Platform159:Post-bang/Pre-beta, Platform161: Pre-GA1

      Description

      After creating a patch file from a running system on hst component parameter values containing an empty string (e.g, <![CDATA[]]>) like the following example, when you try to apply the patch in the target system, it fails with error logs: "[INFO] [talledLocalContainer] 25.05.2017 14:20:31 ERROR http-nio-8080-exec-1 [PatchReader.readPatch:133] Failed to create update operation: Could not read cdata value"

      SOURCE = /hst:hst/hst:configurations/myhippoproject/hst:workspace
      TARGET = /hst:hst/hst:configurations/myhippoproject/hst:workspace
      
      =======================================================================
      INSERT hst:workspace[0]/hst:pages[1]/.../@hst:parametervalues
      TYPE = String
      MULTIPLE = true
      VALUES = [<![CDATA[center]]>, <![CDATA[off]]>, <![CDATA[banners/landing-pg/landing-page-htmlbanner/physician]]>, <![CDATA[20]]>, <![CDATA[on]]>, <![CDATA[20]]>, <![CDATA[bottom]]>, <![CDATA[300]]>, <![CDATA[]]>]
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            wko Woonsan Ko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: