Bug #99675
closedSiteNotFoundException thrown if page slug is changed for page without a SiteConfiguration in rootline
100%
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.
Updated by Stefan Bürk almost 2 years ago
- Related to Task #99188: Streamline ext:redirects auto-create chain added
Updated by Gerrit Code Review almost 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/+/77535
Updated by Gerrit Code Review almost 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/+/77535
Updated by Gerrit Code Review almost 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/+/77535
Updated by Gerrit Code Review almost 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/+/77535
Updated by Stefan Bürk almost 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 5d94b7325dcb1382b053f0662269820b9c1a4553.