Issue Bug Closed

#100827RedirectStatus::getConflictingRedirects

Lina Wolf 05/08/23, 07:21 updated 07/09/24, 12:56

Description

\TYPO3\CMS\Redirects\Report\Status\RedirectStatus::getConflictingRedirects expects $request to be a valid ServerRequestInterface. However it is called by RedirectStatus::getStatus() in which $request defaults to null even though it is of type ServerRequestInterface not ServerRequestInterface|null.

This causes type error when the $request is not set.

Tested with TYPO3 v12.4.0 and on current main branch by calling


            $statusReport = GeneralUtility::makeInstance(Stati\Status::class);

            $statusCollection = $statusReport->getSystemStatus();

Reviews 2

History 25

  1. Gerrit Code Review pushed patch set 1 for main to change 78958 status New Under Review 05/08/23, 07:36

  2. Gerrit Code Review pushed patch set 2 for main to change 78958 05/13/23, 19:26

  3. Gerrit Code Review pushed patch set 1 for 12.4 to change 78985 05/15/23, 19:23

  4. Lina Wolf commented and changed status Under Review Resolved done 0 % 100 % 05/15/23, 19:25

    Applied in changeset commit:ba22241c389362f0304f0cf33becb59680f16425.

  5. Benni Mack changed status Resolved Closed 07/09/24, 12:56