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

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.3.10 DXP GA1
    • Fix Version/s: None
    • Component/s: Pages > Content Pages
    • Labels:
      None
    • Fix Priority:
      4

      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

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            v.koshelenko Vitaliy Koshelenko
            Participants of an Issue:
            Recent user:
            Thalita Celi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package