Review 12.4 Merged

79561[BUGFIX] Allow reconstitution of CSP hash values

Oliver Hader CR +2 V +2 Normal +127 −9 updated 06/29/23, 15:08

Commit message

Reconstituting HashValue objects from their string
representation fails and cannot be used in the site
csp.yaml settings as a consequence.

This change addresses several flaws:

* `HashValue` is used instead of `HashType` as value object
* returning potential null values by `BackedEnum::tryFrom()`
  has to be avoided, since it exits too early
* `rsort` reindexed and destroyed the array keys, which would
  have contained the relevant class names

Test cases for ModelService::buildSourceFromString() are added.

Review

  • Code review CR +2 Done
    • Oliver Hader +2
  • Verified V +2 Done
    • Oliver Hader +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 34

  1. Oliver Hader uploaded patch set 1 06/29/23, 14:57

  2. Oliver Hader voted on patch set 1 V +2 CR +2 06/29/23, 15:03

  3. core-ci voted on patch set 1 V +1 06/29/23, 15:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/43118

  4. Oliver Hader merged patch set 2 06/29/23, 15:08