Review 13.4 Merged

87104[BUGFIX] Prevent BackendUtility::getRecord() postgresql out of range

Christian Kuhn CR +2 V +2 Normal +51 −27 updated 11/20/24, 18:53

Commit message

This is a pre-patch for #94562: It has been discovered that
on postgresql a BackendUtility::getRecord() lookup with
a uid larger than the integer range raises a DriverException.

However, DataHandler and softrefParsers will only expect
a null response from such a query with UID ranges out of
bounds to carry on further exemptions (which is why
throwing an exception is not helpful for this).

This patch adds a test verifying this failure and
adds an early return in case of out of bound lookups.

Review

  • Code review CR +2 Done
    • Andreas Kienast +2
  • Verified V +2 Done
    • Andreas Kienast +2
    • core-ci +1 CI

Issues 2

Files 2

Review log 46

  1. Christian Kuhn uploaded patch set 1 11/20/24, 17:13

  2. core-ci voted on patch set 1 V +1 11/20/24, 17:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/69826

  3. Andreas Kienast uploaded patch set 2 V +1 11/20/24, 18:03

  4. core-ci voted on patch set 2 V +1 11/20/24, 18:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/69839

  5. Andreas Kienast voted on patch set 2 CR +2 V +2 11/20/24, 18:53

  6. Andreas Kienast merged patch set 3 11/20/24, 18:53