Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Work in progress Stale

94458[TASK] Add format prefix to AuthenticatedMessageDeserializer

Oliver Hader CR 0 V -1 Normal +145 −7 updated 06/10/26, 11:07

Commit message

Introduce SerializedDataFormat enum with three cases:

- Unknown (0): no prefix; represents legacy payloads
- ScalarOnly (1): only scalar data, no class tokens
- HMAC (2): class tokens present, HMAC signature appended

AuthenticatedMessageDeserializer::serialize() now scans for
the usage of class names. Payloads that are not using classes
receive a ScalarOnly prefix (0x01) and no HMAC, while payloads
containing classes receive an HMAC prefix (0x02) and an appended
HMAC signature.

AuthenticatedMessageDeserializer::deserialize() reads the leading
indicator byte to select the matching code path. Payloads without
a recognised prefix fall through to the existing legacy path,
preserving backward compatibility with data serialized before
this change.

The enum encapsulates the chr()/ord() byte encoding in the
dedicated toIndicator() and fromIndicator() methods.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/58/94458/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/58/94458/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V -1 Blocked
    • core-ci -1 CI

Files 3

Review log 12

  1. Oliver Hader uploaded patch set 1 06/10/26, 10:43

  2. core-ci voted on patch set 1 V -1 06/10/26, 11:07 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/103311