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

JournalArticle upgraded from 6.1 to 6.2 is NOT updated causing broken LAR when export

    Details

      Description

      Issue
      After performing an upgrade from 6.1 to 6.2, Images are not being imported from LAR. Confirmed that LAR file contains the images not displayed.

      Steps to reproduce

      1. start a 6.1.30 bundle and create a new site
      2. in the site create a structure with some image fields, and template
      3. create new WC with this structure and add to the site page
      4. shut down 6.1 and upgrade to 6.2
      5. after upgrade, verified that the images are showing in the 6.2 bundle
      6. export the site that contains the WC with the images into a LAR
      7. start a clean 6.2 bundle and import the LAR to a clean site

      Expected results
      images from the LAR display in the WC

      Actual results
      Images are not displayed

      Reproduced in
      Branch 6.2.x (79aa85f46d78b75c9d5a6b5081019a9918530cb3)
      master

      Caused by
      in 6.1 the content for JournalArticle used instanceId for dynamicElements whereas in 6.2 it uses index attribute, and in JournalArticleImage the elName is name+"_"+index(in 6.1 its name without the index), and this is used in import/export process as the key to store image binary values. And we didn't upgrade the data accordingly causing inconsistency, which will cause the images not imported successfully.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              xinsui.zhao Xinsui Zhao (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 9 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M3