Bug #46077
closedBELog module error: "vsprintf(): Too few arguments"
100%
Description
AbstractExceptionHandler contains a function named writeLog. That function adds an entry to the system log. System log expects not just a string but a string format with % characters. Callers of this methods may supply something like this to writeLog:
=============
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1303237468: Given select field item list was not found. | RuntimeException thrown in file /var/www/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php in line 409. Requested URL: http://typo3master.dev/typo3/ajax.php?_dc=1362593068887&ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1
=============
This message contains % symbols but it is not a format. Therefore, it should be escaped. The best way is to do it in the writeLog itself because it does not create any log data to format but only adds a plain string.
Updated by Dmitry Dulepov over 11 years ago
In addition there are many entries in the BElog for this error:
Core: Error handler (BE): PHP Warning: vsprintf(): Too few arguments in /var/www/typo3/sysext/belog/Classes/ViewHelpers/FormatDetailsViewHelper.php line 56
Updated by Dmitry Dulepov over 11 years ago
Another error:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1303237468: Given select field item list was not found. | RuntimeException thrown in file /var/www/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php in line 409. Requested URL: http://typo3master.dev/typo3/ajax.php?_dc=1362593068887&ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1
Updated by Gerrit Code Review over 11 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/18762
Updated by Gerrit Code Review over 11 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/19067
Updated by Anonymous over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 027ba83c4c594a12a055b2dfab7ca21dbd0dafd1.