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

Adding a Broken Page Fragment to a Content Page disables page interaction

    Details

      Description

      Description:
      When adding a Broken Page Fragment to a Content Page, the content page cannot be edited and the fragment cannot be removed.
      When attempting to fix the Page Fragment, it is still not possible to edit or interact with the Content Page.

      Steps to Reproduce:
      1) Startup Liferay 7.1
      2) Navigate to Build > Page Fragments
      3) Create a new collection
      4) Create a Page Fragment
      5) Under the HTML section in between the <div> tags, add the following:

       

      [#if request.getAttribute("LIFERAY_SHARED_THEME_DISPLAY")??] 
      [#assign assetEntry = request.getAttribute("LIFERAY_SHARED_THEME_DISPLAY").getThemeId() /] 
      ${assetEntry} 
      [/#if]
      [@liferay.breadcrumbs /] 
      <br> 
      ${init} 
      <br> 
      ${fullTemplatesPath} 
      <br> 
      ${templatesPath} 
      

      Example of what the whole section should look like:

       

      <div class="fragment_38201">
      [#if request.getAttribute("LIFERAY_SHARED_THEME_DISPLAY")??] 
      [#assign assetEntry = request.getAttribute("LIFERAY_SHARED_THEME_DISPLAY").getThemeId() /] 
      ${assetEntry} 
      [/#if]
      [@liferay.breadcrumbs /] 
      <br> 
      ${init} 
      <br> 
      ${fullTemplatesPath} 
      <br>
      ${templatesPath} 
      </div>
      

      Note: Notice that the preview for the Page Fragment says, "Page Fragments is temporarily unavailable."

      6) Navigate to Build > Page
      7) Add a Content Page
      8) Select the created Page Fragment to be displayed on the Content Page
      9) Navigate to the Content Page
      10) Observe UI Error: Internal Server Error and Freemarker Template Error in logs
      11) Navigate back to Build > Page Fragments
      12) Edit created Page Fragment and remove:

      ${templatesPath}

      Note: Notice a preview result in the bottom right corner
      13) Edit the Content Page and remove the broken fragment and add the fixed fragment

      Expected Result: The Content Page can be edited to remove the broken fragment.
      Actual Result: Unable to edit Content page after updating the page fragment.

      Branch:  Reproduced. a94c90f3082f56d091c1d8522bacc845b4c29794
      Master: Fixed by LPS-93065, but it cannot be backported.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lu.liu Lu Liu
                Reporter:
                samuel.ziemer Sam Ziemer
                Participants of an Issue:
                Recent user:
                Lu Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.1.10 DXP FP12
                  7.1.X