#106152Restoring records does not check for valid slugs
Description
Problem/Description
> TL;DR: Restoring pages can result in pages with duplicate url slugs
TYPO3 does not check for any resulting inconsistencies of record slugs. The datahandler is is used to undo / restore records but is NOT using \TYPO3\CMS\Core\DataHandling\DataHandler::fixUniqueInSiteForSubpages method to verify and update restored slugs.
how to reproduce (simple example)
1. Create a pagetree
site/subpage/subpage
2. delete subpage in first level
site/subpage and childrens
3. create a new page with slug site/subpage
4. restore the previously deleted pages
with activated recursive restore checkbox
5. you have now to pages with the same slug site/subpage
ToDo(s)
- Restored records (just pages or also any record with a defined slug field??) must have a consistent unique (site or whole TYPO3 instance wide) slug.
- The backend user needs to be informed about the slug inconsistence and the changed records
Acceptance Criteria
A restored records must not have a conflicting slug in general
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Restoring records does not check for valid slugs Resolves: #106152 Releases: main