Issue Bug Closed

#110052Non-admin users cannot edit short_url redirects

Jan Holtkötter 06/12/26, 06:31 updated 11/06/26, 12:39

Description

Non-administrator backend users are unable to edit redirects of type short_url.

When a short_url redirect is edited and saved, the source_host value is not submitted with the request. During processing, DataHandlerPermissionGuardHook calls RedirectPermissionGuard->isAllowedRedirect(...) to validate permissions.

Inside RedirectPermissionGuard , the source_host is evaluated. Since it is missing from the submitted data, the code falls back to an empty string (‘’). The empty string is then checked against the configured allowedHosts , which causes the permission check to fail because '' is not a valid allowed host.

As a result, non-admin users cannot save changes to existing short_url redirects, even if they have the necessary permissions.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 10

  1. Oliver Hader commented <span data-processor="relativetime" data-value="2026-06-12T14:11:46+00:00" > 06/12/26, 14:11 </span>

    Seems like the security-related guards do not know yet about the newly introduced redirect_type

  2. Marno Schmigotzki commented and changed status Accepted In Progress assigned to Marno Schmigotzki <span data-processor="relativetime" data-value="2026-08-07T12:16:05+00:00" > 08/07/26, 12:16 </span>

    on it

  3. Marno Schmigotzki commented and changed status In Progress Under Review <span data-processor="relativetime" data-value="2026-08-07T14:26:41+00:00" > 08/07/26, 14:26 </span>

    This will be fixed with #109539. I added an additional test in the corresponding patch.

  4. Benni Mack commented and changed status Under Review Closed <span data-processor="relativetime" data-value="2026-11-06T12:39:38+00:00" > 11/06/26, 12:39 </span>

    This is fixed now.