Issue Bug Closed

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

Juergen Kussmann 01/27/22, 13:40 updated 08/12/25, 14:36

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

Reviews 8