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

Same LAR file import fails with the Resources Importer Hook but succeeds when using UI.

    Details

      Description

      The issue can be reproduced on ee-6.2.x. And it can't reproduce on master because resources-importer-web doesn't invoke the import process. But master's logic is not right.

      1. Start one clean bundle.
      2. In Liferay site, add asset publisher portlet in welcome page, click configuration->select scope->choose one site. in this process, we only want to scopeIds attribute exist in asset publisher configuartion. You can view the data in the preferences field of portletpreferences table.
      3. Export the liferay site.
      4. Place the lar in our portlet \WEB-INF\classes\resources-importer\, name the lar for "archive.lar".
      5. Import the portlet (import-lar-portlet-6.2.10.1.war), the issue can be reproduced.

      When asset publisher configuration doesn't includes the scopeIds attribute, the lar can be imported successful.

      Refer to the link:https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/6-1-importing-resources-with-themes.

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              hai.yu Hai Yu
              Participants of an Issue:
              Recent user:
              Mária Kispál (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years ago

                Packages

                Version Package
                Master