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

Private content pages can not be previewed in Page Editor

Details

    • Bug
    • Status: Verified
    • Resolution: Unresolved
    • 7.3.10 DXP GA1
    • None
    • Pages > Content Pages
    • None
    • 4
    • Accessibility

    Description

      Description:

      As a Content Page Editor I'm not able to preview private site pages.

      Steps to reproduce:

      1) Create a private site page;

      2) Go to page editor;

      3) Click on "Preview" (eye icon).

      Expected behavior: page content is displayed in the popup.

      Actual result:  forbidden message is displayed in the popup:

       

      Reason: the URL for preview page is generated incorrectly (has a wrong doAsUserId parameter, set to default user instead of current user).

      Technical details:

      previewPageURL is generated in

      com.liferay.layout.content.page.editor.web.internal.display.context.ContentPageEditorDisplayContext :

      As page is not template - 2nd parameter is true, and this method sets the default user to request:

      This makes it not possible to preview pages, as default user does not have access to private pages.

       

      Attachments

        Activity

          People

            support-lep@liferay.com SE Support
            v.koshelenko Vitaliy Koshelenko
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 29 weeks, 6 days ago

              Packages

                Version Package