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

Revert sort direction of Document and Media fails in display page template

    Details

      Description

      Steps to reproduce:

      1. Add a site
      2. Add a display page template with Document content type and Basic Document subtype
      3. Add an image fragment
      4. Map image fragment to Basic Document > File URL field
      5. Add a document and media widget under it
      6. Publish the display page template and mark it as the default one
      7. Add a basic document
      8. Add a content page
      9. Add a Asset Publish to page
      10. Click the created document
      11. Assert page redirects to display page
      12. Click Revert sort direction icon in Dcoument and Media

      Actual result:
      Fail to load image frgament, "An unexpected error occurred." displays in page, and there's also error in console:

      2022-01-28 09:21:03.351 ERROR [http-nio-8080-exec-7][FragmentRendererControllerImpl:126] Unable to render content of fragment entry 0:java.lang.NullPointerException
      

      Expected result:
      Document loads both in Image and Document and Media.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              team-echo Product Team Echo
              Reporter:
              lu.liu Lu Liu
              Participants of an Issue:
              Recent user:
              Rafaela Nascimento
              Engineering Assignee:
              Victor Galan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                27 weeks, 4 days ago

                  Packages

                  Version Package
                  7.4.3.11 CE GA11
                  Master