Review 13.4 Merged

87762[BUGFIX] Avoid $e->getPrevious() in DH->insertDB() exceptions

Christian Kuhn CR +2 V +2 Normal +60 −67 updated 01/14/25, 17:39

Commit message

$e->getPrevious() on \Doctrine\DBAL\Exception may be null
depending on the specific doctrine exception being thrown.
Within DataHandler->insertDB(), we're interested in the fail
message from the driver if given. The exception handling
within doctrine has been improved with v3. The exception
message of \Doctrine\DBAL\Exception now always contains
the fail message from a driver if given, there is no
point in trying to fetch the message from a possible
previous exception anymore.
The patch streamlines DataHandler->insertDB() a bit and
logs the exception message from the "outer" exception
directly.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
    • Stefan Bürk +1
  • Verified V +2 Done
    • Christian Kuhn +2
    • Stefan Bürk +1
    • core-ci +1 CI

Issues 3

Files 1

Review log 45

  1. Christian Kuhn uploaded patch set 1 01/14/25, 16:43

  2. core-ci voted on patch set 1 V +1 01/14/25, 16:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/72471

  3. Stefan Bürk voted on patch set 1 CR +1 V +1 01/14/25, 17:31

  4. Christian Kuhn voted on patch set 1 CR +2 V +2 01/14/25, 17:39

  5. Christian Kuhn merged patch set 2 01/14/25, 17:39