Details
-
Bug
-
Status: Verified
-
Resolution: Unresolved
-
7.3.10 DXP GA1
-
None
-
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.