Bug #64966

fe_login Usergroup redirect fails

Added by Simon Brandstätter over 6 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-02-10
Due date:
% Done:

100%

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

Description

I have a own sv1 extension where a new User is made over webservice with usergroups. The groups are not saved asc. (eg. 12,11,15,10,13).
If the new user log in he should be redirected to a page which is defined in group.
But in the FrontendLoginController.php (663) there is a DB select where the in statement becomes wrong:
implode(',', $groupData['uid']) ... but this gives ,10,11,12,13,15 so there was an empty array element.
So the code must become:
array_filter($groupData['uid']) and everything is fine.

#1

Updated by Simon Brandstätter over 6 years ago

Simon Brandstätter wrote:

I have a own sv1 extension where a new User is made over webservice with usergroups. The groups are not saved asc. (eg. 12,11,15,10,13).
If the new user log in he should be redirected to a page which is defined in group.
But in the FrontendLoginController.php (line 663 Typo3 6.2.9) there is a DB select where the in statement becomes wrong:
implode(',', $groupData['uid']) ... but this gives ,10,11,12,13,15 so there was an empty array element.
So the code must become:
implode(',', array_filter($groupData['uid'])) and everything is fine.

#2

Updated by Gerrit Code Review over 6 years 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 http://review.typo3.org/39447

#3

Updated by Gerrit Code Review about 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39447

#4

Updated by Gerrit Code Review about 6 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39447

#5

Updated by Gerrit Code Review about 6 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39447

#6

Updated by Mathias Schreiber almost 6 years ago

  • Target version deleted (next-patchlevel)
#7

Updated by Gerrit Code Review almost 6 years ago

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

#8

Updated by Frederic Gaus almost 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#9

Updated by Gerrit Code Review almost 6 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45131

#10

Updated by Frederic Gaus almost 6 years ago

  • Status changed from Under Review to Resolved
#11

Updated by Benni Mack about 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF