Project

General

Profile

Actions

Bug #98071

closed

Type error within TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode

Added by Timo Webler over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-08-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

Within the class TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode the following error can occurred

TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode(): Return value must be of type string, null returned

The method \TYPO3\CMS\Backend\Routing\PreviewUriBuilder::buildImmediateActionElement can return null, but the method \TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode must return an string.

This can haben, if the preview page ist not accessable.

Maybe a type cast fix these issue.


Files

image.png (187 KB) image.png Timo Webler, 2022-08-04 07:21
Actions #1

Updated by Andreas Kienast over 2 years ago

  • Sprint Focus set to On Location Sprint
Actions #2

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75351

Actions #3

Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75351

Actions #4

Updated by Gerrit Code Review over 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75351

Actions #5

Updated by Gerrit Code Review over 2 years ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75351

Actions #6

Updated by Gerrit Code Review over 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75361

Actions #7

Updated by Georg Ringer over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF