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

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
      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 using View
      11) Navigate back to the Content Page (editor mode)

      Expected Result: The Content Page shows appropriately, in the editor the broken Fragment is show as an error, in view (to a user with editor permission) there's a warning at the top of the page. SeeĀ PTR-727
      Actual Result: Unable to edit the Content Page, and view the Page Fragment results in "Internal Error".

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 23 weeks, 2 days ago

                Packages

                Version Package
                Master