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

When journalarticle contains a image but the journalarticleimage and image reference don't exist, the upgrade process fail to convert the url in the column CONTENT

    Details

      Description

      When journalarticle contains a image but the journalarticleimage and image reference don't exist, the upgrade process fail to convert the url in the column CONTENT

      Steps to reproduce

      1. Start Liferay 6.2.
      2. Create a new structure with a image.
      3. Create a template and select the previous structure.
      4. Create a web content and choose an image.
      5. Open the content column in the journalarticle recent create and find the imageid reference, it's the same for journalarticleimage and image table. For example:
      <?xml version="1.0"?>
      <root available-locales="en_US" default-locale="en_US">
       <dynamic-element name="Image1934" type="image" index-type="keyword" index="0" instance-id="fcul">
       <dynamic-content language-id="en_US" id="21303">/image/journal/article?img_id=21303&amp;t=1555513519677</dynamic-content>
       </dynamic-element>
      </root>
      
      
      1. Go to Control Panel -> Administration Server -> Script.
      2. In the groovy script put the imageid in var codeImageReference and execute the groovy script.
      3. Start the upgrade process to Liferay 7.1
      4. Start Liferay 7.1
      5. Open the web content.

       Expected behavior

      The web content open without errors and you don't see the image and you can edit the image.

       Actual behavior

      The web content throws and exception and you can't edit the content.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lu.liu Lu Liu
              Reporter:
              pablo.calvo Pablo Calvo (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 23 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP13
                  7.1.X
                  Master