Skip to content

[BUGFIX] add upgrade wizard to migrate from v13 to v14 - #21

Merged
sfsmfc merged 2 commits into
developfrom
bugfix/v14-upgrade-wizard
Sep 21, 2026
Merged

sfsmfc merged 2 commits into
developfrom
bugfix/v14-upgrade-wizard

Conversation

@sfsmfc

@sfsmfc sfsmfc commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

After upgrading from TYPO3 v13 to v14, instanceSecret values stored in site settings could no longer be decrypted. This caused status queries and dashboard URL fetches to silently fail, surfacing as "Status query failed" and "Dashboard URL could not be retrieved" in the backend.

Problem: The v13 fallback implementation in CipherService serialized the encrypted payload with the JSON key "ciphertext", while TYPO3 v14's CipherValue::fromSerialized() expects "cipher". Values encrypted under v13 are therefore unreadable by the v14 decryption path.

@sfsmfc
sfsmfc force-pushed the bugfix/v14-upgrade-wizard branch 5 times, most recently from 65b5c10 to 3a9b170 Compare September 1, 2026 13:43
@sfsmfc sfsmfc changed the title [BUGFIX] add upgrade wizard to migrate v13 to v14 [BUGFIX] add upgrade wizard to migrate from v13 to v14 Sep 3, 2026
@sfsmfc
sfsmfc force-pushed the bugfix/v14-upgrade-wizard branch from 3a9b170 to cc1f3b9 Compare September 10, 2026 21:15
- Fix isLegacyFormat() call in InstanceSecretEncryptionMigrationWizard
  (was $this->isLegacyFormat(), must be $this->cipherService->isLegacyFormat())
- Wrap decryptWithSodium key derivation in try/finally so sodium_memzero()
  is always called even if a SodiumException or JsonException is thrown
- Rename phpstan.bootstrap-dashboard.php → phpstan.bootstrap-typo3stubs.php
  and add a cms-install autoloader shim so Classes/Upgrades/ can be
  included in PHPStan analysis; add CI fallback stubs for
  UpgradeWizardInterface and the UpgradeWizard attribute
- Remove excludePaths for Classes/Upgrades/ from phpstan.neon

@buchmarv buchmarv left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer baseline entries over stubs, but I guess we can keep it like this.

@sfsmfc
sfsmfc merged commit f162c01 into develop Sep 21, 2026
10 checks passed
@sfsmfc
sfsmfc deleted the bugfix/v14-upgrade-wizard branch September 21, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants