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

Can't import(Lar, Staging) Contributed Fragments (FragmentEntryLinks with no FragmentEntryId)

    Details

      Description

      Description
      https://github.com/liferay/liferay-portal/blob/master/modules/apps/fragment/fragment-service/src/main/java/com/liferay/fragment/internal/exportimport/data/handler/FragmentEntryLinkStagedModelDataHandler.java#L146-L161

      This piece of code when importing FragmentEntryLinks assumes that the FragmentEntryLink has a FragmentEntry in the database. There are times where it often is not the case, as when using contributed fragments.

      Currently Contributed Fragments will not be importable (exporting is okay if you want to save the LAR for later).

      Steps to Reproduce

      1. Activate Local Staging
      2. Add a Fragment Entry Link with no Fragment Entry ( Add a Contributed Fragment)
      3. Publish to Live

      Expected Result
      Fragment Entry Link present on live site

      Actual Result
      Fragment Entry Link not present on live site

      Tested on Tomcat 9.0.10 + MySQL 5.7
      Portal master GIT ID: 826a5b06994aa6d1cd2f0afc79023ad7e44f627b

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brooke.dalton Brooke Dalton
              Reporter:
              kyle.miho Kyle Miho
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 13 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.X
                  7.2.10 DXP FP1
                  7.2.X
                  7.2.1 CE GA2
                  7.3.10 DXP GA1
                  Master