Issue Bug Closed

#105036Switching user in Backend leads to a [object%20Object] URL

Helmut Hummel 09/18/24, 22:07 updated 10/15/24, 09:05

Description

SwitchUserController intends to return an URI to the TYPO3
main route, thus calls the UriBuilder, which returns an Uri object.

When json encoding this PHP object, it is transformed to an empty JS object,
eventually leading to the following code being executed:

top.window.location.href = {}

This results in adding [object%20Object] to the URL.

In restrictive webserver configurations,
such URLs will lead to a Bad Request response.

Reviews 3

History 38

  1. Helmut Hummel commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-09-19T06:15:07+00:00" > 09/19/24, 06:15 </span>

    Applied in changeset commit:e7b355258ba8686e60157b7f6b7c19680899d974.

  2. Gerrit Code Review pushed patch set 1 for 12.4 to change 86212 status Resolved Under Review <span data-processor="relativetime" data-value="2024-09-19T07:09:19+00:00" > 09/19/24, 07:09 </span>

  3. Helmut Hummel commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2024-09-19T07:15:08+00:00" > 09/19/24, 07:15 </span>

    Applied in changeset commit:3cffe0c1be263cae1836c2c14786e8307e1b2ed0.