Review 13.4 Merged

89926[BUGFIX] Restore DBAL DSN URL support in ConnectionPool

Stefan Bürk CR +2 V +2 Normal +70 −0 updated 06/26/25, 20:11

Commit message

Restores support for the `url` parameter (DSN string) for database
connection configurations.

This functionality was available in TYPO3 v12 but stopped working in v13
due to an underlying change in Doctrine DBAL. With DBAL v3, automatic
parsing of the `url` parameter was deprecated and later removed.

This patch re-introduces the functionality by explicitly using the
`Doctrine\DBAL\Tools\DsnParser` to parse the DSN URL if the `url`
key is present in the connection parameters. This ensures that a
DSN string is properly resolved into the individual connection parts
(host, dbname, user, etc.) before the connection is established.

The change is applied in `ConnectionPool::getConnectionParams()` and
restores the previous behavior without affecting existing setups that
do not use the DSN `url` parameter.

Review

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

Issues 1

Files 2

Review log 34

  1. Stefan Bürk commented on patch set 1 06/26/25, 20:00

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 06/26/25, 20:09 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/81032

  3. Stefan Bürk voted on patch set 1 CR +2 V +2 06/26/25, 20:11

  4. Stefan Bürk merged patch set 2 06/26/25, 20:11