Skip to content

[Bug]Viewing Process Log files invalid types #1015

@creativehubspace

Description

@creativehubspace

Pimcore Version
12.1.4

Steps to reproduce

  1. Run any process defined in the Process Manager
  2. Try to access the Process log files

Actual Behavior

  1. Log files are not accessible
  2. 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

  1. 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

  1. #L8
  2. #L97

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) . ' ';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions