Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-87280

Problems with Images in WebContent Structures.

Details

    Description

      Reproduction Steps:

      0. Use a vanilla 7,1 with the latest fix pack.

      1. Enable local staging for a new site.

      2. In the staging site create a web content Structure and add a field of type Image and
      set the field as "Required".

      3. Create a new web content with the structure.

      4. Insert test data and in the "image description" field insert a sentence with the apostrophe
      character (ex. "this image doesn't work").

      5. Publish the WebContent.

      6. Publish to Live.

      ISSUE 2 -> Error: The Web Content Article test image could not be imported because of the following error: Invalid XPath expression: //dynamic-element[@type='image']/dynamic-content[contains(text(),'{"groupId":"34367","name":"barletta.jpg","alt":"this image doesn't work","title":"barletta.jpg","type":"journal","uuid":"b11102cb-1f88-6e89-6eb1-cf3c6551aeeb","fileEntryId":"45003","resourcePrimKey":"45001"}')] Expected: ).
      

      if we removed the "apostrophe" the publish to live works fine.

      Also tested:

       7.1x reproduced

       master  reproduced

      Attachments

        Activity

          People

            summer.zhang Summer Zhang
            laszlo.pap Laszlo Pap
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 51 weeks, 4 days ago

              Packages

                Version Package
                7.1.10 DXP FP6
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master