Project

General

Profile

Actions

Bug #46077

closed

BELog module error: "vsprintf(): Too few arguments"

Added by Dmitry Dulepov about 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2013-03-06
Due date:
% Done:

100%

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

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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #61123: BELog module error: "vsprintf(): Too few arguments" the secondClosed

Actions
Related to TYPO3 Core - Bug #77444: BELog module error: "vsprintf(): Too few arguments" the secondClosed2016-08-08

Actions
Actions

Also available in: Atom PDF