Project

General

Profile

Actions

Bug #95488

closed

Exception in FE and when filtering in redirects module if redirect target has wrong format

Added by Sybille Peters over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2021-10-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Versions

  • TYPO3 10.4.21

Reproduce

1. Enter a redirect with target with page link, formatted incorrectly:

page=uid=p1004

2. Load the page (= redirect source) in FE: exception

3. Filter by the source in the redirects module: exception

Exception

Wed, 06 Oct 2021 07:12:14 +0200 [CRITICAL] request="400a38d4d7411" component="TYPO3.CMS.Core.Error.ProductionExceptionHandler": 
Core: Exception handler (WEB): Uncaught TYPO3 Exception: 
#1460581769: LinkHandler for page=uid=p1004 was not registered | TYPO3\CMS\Core\LinkHandling\Exception\UnknownLinkHandlerException thrown in file
/var/www/mysite/releases/35/htdocs/typo3/sysext/core/Classes/LinkHandling/LinkService.php in line 117.
Requested URL: https://uol.de/****** - 
{"TYPO3_MODE":"FE","exception":"TYPO3\\CMS\\Core\\LinkHandling\\Exception\\UnknownLinkHandlerException: 
LinkHandler for page=uid=p1004 was not registered in 
/var/www/mysite/releases/35/htdocs/typo3/sysext/core/Classes/LinkHandling/LinkService.php:117

see file exception_issue_redirects.txt for full stack dump

Fix problem

Problem can be fixed, by fixing the wrong target. However, this is difficult to do in the redirects module (because of the exception when filtering). Can be fixed in DB directly:

UPDATE sys_redirect SET target='t3://page?uid=1004' WHERE target='t3://page=uid=p1004';

Related

See exception entry: https://github.com/TYPO3-Documentation/TYPO3CMS-Exceptions/pull/37/files


Files

exception_issue_redirects.txt (7.33 KB) exception_issue_redirects.txt Exception stack trace Sybille Peters, 2021-10-06 07:52
Actions

Also available in: Atom PDF