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

Fragment Thumbnail not imported with command: npm run import

    Details

    • What problem did the customer find?:
      Fragment Thumbnail not imported with command: npm run import
    • What do you think is the root cause? (if known):
      unknown
    • Proposed solution (if any):
      none at this time

      Description

      This issue appears to be possibly related to LPS-105010

      Issue
      In a terminal session if we try manually importing the fragment, the thumbnail is not displayed in the UI though present in the build file: liferay-fragments.zip.

      Steps to reproduce:
      liferay-dxp-7.2.10-ga1 bundle

      1. Create a fragment project yo liferay-fragments within the $/tomcat/bin directory
      2. Add a new fragment collection npm run add-collection
      3. Add a new fragment npm run add-fragment
      4. Copy an image named thumbnail.png into the fragment's directory
      5. Edit the fragment's fragment.json to add the following attribute: "thumbnailPath": "thumbnail.png"
      6. Package the fragment for distribution npm run compress
      7. Note a zip file is generated in builds directory
      8. Start liferay-dxp-7.2.10-ga1 bundle and login
      9. Open a terminal session from the liferay-fragment project folder you created
      10. run the command npm run import

      Expected Results
      The fragment imports in full and appears in the UI upon browser refresh.

      Actual Results
      The fragment imports and appears upon browser refresh but the thumbnail is missing.

      Environment
      generator-liferay-fragments@1.5.0
      npm@6.13.2
      yo@3.1.1

      Reproduced in

      • 7.2.x private (38f3419bd23cb8dc152ca3bcc2ce79d21ea4cca2)
      • liferay-dxp-7.2.10-ga1 bundle

      Note
      master (896f13d991710dbbc49980cd80e3a3df6436c65b)
      Tested importing via the UI, this was successful. Using the command line no changes appeared post browser refresh.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  32 weeks, 6 days ago

                  Packages

                  Version Package
                  7.3.1 CE GA2
                  Master