[BUGFIX] Switch-User feature uses wrong user id for logging 90/45490/4
authorOliver Hader <oliver@typo3.org>
Tue, 29 Dec 2015 14:07:12 +0000 (15:07 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 26 Feb 2016 14:53:59 +0000 (15:53 +0100)
commit4f62399030d1aafe1c2b2a651649bb88c2f745e9
tree76102859658358d5914dd7faf712d6356d25515c
parent4b21c91385a23a406d80056970f31e93b49199a8
[BUGFIX] Switch-User feature uses wrong user id for logging

Issue #17643 introduced logging for a simulated backend user
(switch-user) and thus logs by using the original admin user.

This is a regression in PageLayoutController::renderQuickEdit
since the used backend user id is different to the persisted
one. Besides that, all actions are performed with the permissions
of the simulated user - thus, logging with a different user seems
to wrong. The sys_log.log_data field (array) is used to transport
the information of the original (admin) user.

This change reverts the initial change of issue #17643 and adds
the initial intention of that issue as addition to the persisted
data in sys_log.log_data. All affected components are adjusted as
well to visualize that a user has been simulated (log view, record
history and lowlevel_cleaner syslog command).

Resolves: #71580
Releases: master, 7.6
Change-Id: If12df60563afd1f0746d43e62f824b20f139df8c
Reviewed-on: https://review.typo3.org/45490
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/History/RecordHistory.php
typo3/sysext/belog/Resources/Private/Language/locallang.xlf
typo3/sysext/belog/Resources/Private/Partials/Content/LogEntries.html
typo3/sysext/belog/Resources/Private/Partials/Content/Username.html [new file with mode: 0644]
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
typo3/sysext/core/Classes/Error/ErrorHandler.php
typo3/sysext/lang/locallang_show_rechis.xlf
typo3/sysext/lowlevel/Classes/SyslogCommand.php