Summary
When running importexport and some exception get thrown e.g Doctrine\DBAL\Exception\UniqueConstraintViolationException, class Oro\Bundle\BatchBundle\Step\StepExecutor::handleStepExecutionWarning() will attempt to call getMessageParameters().
Steps to reproduce
Mimic any doctrine exceptions that do not implement method getMessageParameters.
Actual Result
Calling methods (getMessageParameters) that do not exist.
Expected Result
Should call method getMessageParameters only if exist
Details about your environment
OroPlatform version: 4.1.1
PHP version: 7.3.18
Database (PostgreSQL) version: 9.6
Additional information
I am not so sure but I think Oro\Bundle\BatchBundle\Step\StepExecutor::handleStepExecutionWarning should check existence of getMessageParameters or only call this on expected class. e.g fixes https://github.com/oroinc/platform/pull/982
Summary
When running importexport and some exception get thrown e.g Doctrine\DBAL\Exception\UniqueConstraintViolationException, class Oro\Bundle\BatchBundle\Step\StepExecutor::handleStepExecutionWarning() will attempt to call getMessageParameters().
Steps to reproduce
Mimic any doctrine exceptions that do not implement method getMessageParameters.
Actual Result Calling methods (getMessageParameters) that do not exist.
Expected Result
Should call method getMessageParameters only if exist
Details about your environment
Additional information
I am not so sure but I think Oro\Bundle\BatchBundle\Step\StepExecutor::handleStepExecutionWarning should check existence of getMessageParameters or only call this on expected class. e.g fixes https://github.com/oroinc/platform/pull/982