Review 14.3 Merged

95617[BUGFIX] Store language pack state in JSON file

Stefan Bürk CR +2 V +2 Hard +575 −43 updated 09/03/26, 19:47

Commit message

In some setups, the language packs are updated during the deployment
process. Depending on the stage, the database may not be available yet.
This leads to errors during the deployment, because the
`LanguagePackService` attempts to store its state in the registry.

To remove the dependency to the database, the language pack state is now
stored into a JSON file within `var/labels` (or `typo3conf/l10n`). The
data is currently partially used in the Install Tool only.

This commit also side-fixes a bug that stored the update date of
localized packages only in an erroneous state.

Reads and writes of the JSON file are serialized through the core
locking API (`LockFactory`), so concurrent callers - for example a
parallel language pack download from the backend UI and a CLI run -
do not overwrite each other's changes. Bulk operations such as
`language:update` and the registry-to-JSON migration wizard batch
their writes into a single locked read-write cycle instead of one
per updated pack.

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 7

Review log 34

  1. Stefan Bürk uploaded patch set 1 09/03/26, 19:33

  2. core-ci voted on patch set 1 V +1 09/03/26, 19:42 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107775

  3. Stefan Bürk voted on patch set 1 CR +2 V +2 09/03/26, 19:47

  4. Stefan Bürk merged patch set 2 09/03/26, 19:47