Bug #46361

BackendUtility::lockRecords throws warnings with PHP 5.4

Added by Helmut Hummel about 8 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2013-03-16
Due date:
% Done:

100%

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

Description

$GLOBALS['BE_USER']->user['uid'] is accessed even if a user
is not logged in which leads to a "Illegal String offset" warning.

Additionally a delete query is executed in this case which
does not make sense at all.

Solution:
Properly check if a user is logged in before executing any
functionality in this method.


Related issues

Has duplicate TYPO3 Core - Bug #46245: BE/Log: Illegal string offset 'uid' Closed2013-03-13

Actions
Has duplicate TYPO3 Core - Bug #44442: Error at backend loginClosed2013-01-10

Actions
#1

Updated by Gerrit Code Review about 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18978

#2

Updated by Wouter Wolters about 8 years ago

This one looks related: http://forge.typo3.org/issues/46245

#3

Updated by Gerrit Code Review about 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18978

#4

Updated by Gerrit Code Review about 8 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18978

#5

Updated by Gerrit Code Review about 8 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18978

#6

Updated by Gerrit Code Review about 8 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/18992

#7

Updated by Gerrit Code Review about 8 years ago

Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/18993

#8

Updated by Gerrit Code Review about 8 years ago

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at https://review.typo3.org/18994

#9

Updated by Helmut Hummel about 8 years ago

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

Updated by Riccardo De Contardi over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF