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

Web content: empty document library fields after an upgrade

    Details

      Description

      Steps to reproduce it:

      1. Startup the 6.0.12 portal.
      2. Create a document.
      3. Create a web content structure with document library field.
      4. Create a template for that structure.
      5. Create a web content using that structure selecting the previous created document in the DL field.
      6. Upgrade the portal to master
      7. Edit the previous created web content and verify that there is no document selected in the DL field.

      Explanation:
      The issue LPS-67119 added a new upgrade step com.liferay.journal.internal.upgrade.v1_1_0.UpgradeDocumentLibraryTypeContent which expects document library URLs in one specific format (see com.liferay.journal.internal.upgrade.v1_1_0.UpgradeDocumentLibraryTypeContent#getFileEntryByDocumentLibraryURL) however, for upgrades from 6.0.12 or 6.1.x, the URLs aren't converted into that format until the execution of the Verify Process (com.liferay.journal.verify.JournalServiceVerifyProcess#verifyArticleContents) which is executed at the end of the upgrade.

      Taking this into account probably the most feasible solution will be to convert that verify method into an upgrade process executed prior to .v1_1_0.UpgradeDocumentLibraryTypeContent

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 30 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master