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

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 2