-
Notifications
You must be signed in to change notification settings - Fork 124
Description
Pimcore Version
12.1.4
Steps to reproduce
- Run any process defined in the Process Manager
- Try to access the Process log files
Actual Behavior
- Log files are not accessible
- Exception is thrown
request.CRITICAL: Uncaught PHP Exception TypeError: "Doctrine\DBAL\Connection::quote(): Argument #1 ($value) must be of type string, int given, called in /var/www/pimcore/vendor/pimcore/admin-ui-classic-bundle/src/Helper/QueryParams.php on line 97"
Expected Behavior
- You can view the Process log in the Admin
Root cause
The root cause of this issue is from Doctrine\Dbal changing the signature of quote and quoteIdentifier methods.
Occurence
Adding explicit Cast to string in these files solves the issue
$conditions[$f->property][] = ' ' . $db->quoteIdentifier($f->property) . ' = ' . $db->quote((string)$f->value) . ' ';
$conditions[$f->property][] = ' ' . $db->quoteIdentifier($f->property) . ' ' . $symbol . $db->quote((string)$f->value) . ' ';