Project

General

Profile

Actions

Bug #96658

open

Frontend preview doesn't work on restricted pages, when any none-live-workspace is selected

Added by Juergen Kussmann almost 3 years ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2022-01-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

The frontend-preview of restricted pages doesn't work, when any none-live-workspace is selected.

An example:
The TYPO3-page 'mytypo3page' (UID=272204) is restricted by the fe_groups-record with UID 4884.

When i click the frontend-preview-button in the TYPO3-backend-module 'page' (in LIVE-Workspace), than TYPO3 is calling the URL https://mytypo3domain.com/mytypo3page?ADMCMD_simUser=4884 and the Preview works.

When i click the frontend-preview-button in the TYPO3-backend-module 'page' (in any NONE-LIVE-Workspace - e.g. my 'test-workspace'), than TYPO3 is calling the URL https://mytypo3domain.com/typo3/workspace/preview-control/?token=[token]&id=272204.
The Response of that URL calls now two URLs:
- /mytypo3page?ADMCMD_prev=LIVE&id=272204
- /mytypo3page?ADMCMD_prev=IGNORE&id=272204
Both of that URL's produces a 403 HTTP-StatusCode - with message 'ID was not an accessible page' in PageErrorHandlerInterface.

When i add the String '&ADMCMD_simUser=4964' on the URL https://mytypo3domain.com/typo3/workspace/preview-control/?token=[token]&id=272204 than the preview works fine.

So, in short:
This (current) URL doesn't work on restricted pages: https://mytypo3domain.com/typo3/workspace/preview-control/?token=[token]&id=272204
This URL does work on restricted pages: https://mytypo3domain.com/typo3/workspace/preview-control/?token=[token]&id=272204&ADMCMD_simUser=4964


Files

workspaces-PreviewController.patch (1.96 KB) workspaces-PreviewController.patch Patch for v11 Philipp Kitzberger, 2024-10-09 21:03

Related issues 2 (2 open0 closed)

Related to TYPO3 Core - Bug #96778: Workspace Preview Links not working when [starttime] in futureUnder Review2022-02-08

Actions
Related to TYPO3 Core - Bug #105567: Frontend preview not working on restricted pages for normal editorsNeeds Feedback2024-11-11

Actions
Actions

Also available in: Atom PDF