Bug #89515

Backend users having old bookmark/shortcut with missing parameter query in returnUrl cannot access backend

Added by Tobias Gaertner 27 days ago. Updated 18 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Authentication
Target version:
-
Start date:
2019-10-25
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 9.5.9
1000+ BE Users
Can't login with one (found so far)

Error:


(1/1) TypeError
parse_str() expects parameter 1 to be string, null given

in /var/www/html/web/typo3/sysext/backend/Classes/Backend/Shortcut/ShortcutRepository.php line 741

Problem is when there are entrys in sys_be_shortcuts with an old style (Updated from TYPO3 7) like


/typo3/alt_doc.php?&returnUrl=/typo3/index.php?&M=web_layout&id=12046&edit[tt_content][189684]=edit&defVals=&overrideVals=&columnsOnly=&returnNewPageId=&editRegularContentFromId=&disHelp=&noView=&SET[showPalettes]=1

without the param "query" in returnUrl.

Checking the code line from the error, I solved it with the following change.

ShortcutRepository.patch View (947 Bytes) Tobias Gaertner, 2019-10-25 15:34


Related issues

Related to TYPO3 Core - Bug #89533: parse_str() expects parameter 1 to be string, null given in typo3_src-9.5.10/typo3/sysext/backend/Classes/Backend/Shortcut/ShortcutRepository.php line 743 Resolved 2019-10-29

History

#1 Updated by Tobias Gaertner 24 days ago

  • Description updated (diff)

#2 Updated by Tobias Gaertner 24 days ago

  • Description updated (diff)

#3 Updated by Tobias Gaertner 24 days ago

  • Subject changed from Exception on some BE Users "parse_str() expects parameter 1 to be string, null given" to Backend users having old bookmark/shortcut with missing parameter query in returnUrl cannot access backend

#4 Updated by Gerrit Code Review 18 days ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62182

#5 Updated by Oliver Bartsch 18 days ago

  • Related to Bug #89533: parse_str() expects parameter 1 to be string, null given in typo3_src-9.5.10/typo3/sysext/backend/Classes/Backend/Shortcut/ShortcutRepository.php line 743 added

Also available in: Atom PDF