Project

General

Profile

Actions

Bug #79104

closed

AvatarViewHelper in History Module throws exception upon deleted BE user

Added by Anja Leichsenring almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2016-12-29
Due date:
% Done:

100%

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

Description

While trying to render avatars for History entries, the BEuser responsible for the change is requested from database. In case it is not found, the queryBuilder returns false. There is no check for a valid BEuser record array to be passed to the Avatar::render() function, leading to:

Uncaught TYPO3 Exception
Argument 1 passed to TYPO3\CMS\Backend\Backend\Avatar\Avatar::render() must be of the type array, boolean given, called in .../typo3/cms/typo3/sysext/backend/Classes/ViewHelpers/AvatarViewHelper.php on line 88 

TypeError thrown in file
.../typo3/cms/typo3/sysext/backend/Classes/Backend/Avatar/Avatar.php in line 51.
Actions #1

Updated by Gerrit Code Review almost 8 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 https://review.typo3.org/51058

Actions #2

Updated by Gerrit Code Review almost 8 years ago

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

Actions #3

Updated by Anja Leichsenring almost 8 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF