Project

General

Profile

Actions

Bug #102556

closed

Editor is unable to delete a page that contains an automatically created redirect

Added by Christoph Lehmann 3 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Redirect Handling
Target version:
-
Start date:
2023-11-29
Due date:
% Done:

0%

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

Description

As an Editor without the permission "modify table sys_redirect" I am able to rename a page. By renaming and modifying the slug a redirect is created. At this point I can't delete the page with that error message:


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #99044: Ensure auto-created redirect are stored on connected site rootClosedStefan Bürk2022-11-10

Actions
Related to TYPO3 Core - Feature #91776: Use the pid field to associate a redirect with the page it was created forClosed2020-07-09

Actions
Actions #1

Updated by Stefan Bürk about 1 month ago · Edited

  • Assignee set to Stefan Bürk

Thanks for the report Christopher.

Just as a remark - with TYPO3 v12.1 this behaviour has changed.
Auto-created redirects are stored on the corresponding "Site Root"
with #99044 [1] and a upgrade wizard is provided to migrate the existing
redirects.

This has been previously changed to be on the pages as a feature for an
agency needing this #91776 [2] - but it played out to provide headache,
as you described. Along with other things changed in v12 (introducing
a generic overhaul regarding the auto-redirect creation along with a
couple of events) the moving to the site-root was a preparation patch.

I don't think this will make it back to v11 in any way, as it would kind
of a behaviour change for a long standing LTS version.

For composer based installations, you could try to manually backport the
TYPO3 v12.1 change [3] to TYPO3 v11 and using a composer patch. But this
will not be provided officially

Additionally, you could try to extract it to a extension and replace the
core redirect service to override the behaviour and doing the same.

[1] https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.1/Important-99044-EnsureAuto-createdRedirectAreStoredOnConnectedSiteRoot.html
[2] https://forge.typo3.org/issues/91776
[3] https://review.typo3.org/c/Packages/TYPO3.CMS/+/76521

This just as a first remark - I will have a relook if we could find
another solution for v11 but this can take some time as I have pressure
on other tasks currently.

Actions #2

Updated by Stefan Bürk about 1 month ago

  • Related to Task #99044: Ensure auto-created redirect are stored on connected site root added
  • Related to Feature #91776: Use the pid field to associate a redirect with the page it was created for added
Actions #3

Updated by Christoph Lehmann about 1 month ago

  • Status changed from New to Closed

When its fixed in v12, then its fine for me to use composer patches. Thank you!

Actions

Also available in: Atom PDF