Project

General

Profile

Actions

Bug #99675

closed

SiteNotFoundException thrown if page slug is changed for page without a SiteConfiguration in rootline

Added by Stefan Bürk almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Link Handling & Redirect Handling
Target version:
Start date:
2023-01-23
Due date:
% Done:

100%

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

Description

If a page slug is changed and no SiteConfiguration available in
the page rootline the corresponding DataHandler Hook fails with
a SiteNotFoundException.

This is related to the streamlining of the ext:redirects auto
create chain which invokes site-configurations early in the
factory for creating the change item without properly handling
the exception. This has been a oversight in the streamlining
change.

Use-caches which triggers this are `SysFolders` directly under
the root point (PID 0) with subpages. If the sysfolder is saved
or subpages changes the excetion is thrown.

Auto create chain is based on two options which are bound to a
concrete SiteConfiguration. If no SiteConfiguration is found,
it is the same as both options are disabled or not set. Thus
the factory for the change item should handle the exception
properly and early returning to avoid any handling. Additionally,
the check for both options should also be done early do avoid the
creationg of change item sources (which may be extended by emmiting
events) which would be superflous if no handling is needed.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #99188: Streamline ext:redirects auto-create chainClosedStefan Bürk2022-11-25

Actions
Actions

Also available in: Atom PDF