Recovery mode: switch off an imported Stalwart web interface (#638) #639

Merged
jcoffey-dev merged 1 commits from fix/638-recovery-imported-webui into main 2026-11-25 19:11:18 +00:00
Owner

Fixes #638.

A store brought over from Stalwart lists upstream's web interface. Normal startup switches it off the first time inbuxa opens the store, but recovery mode returned from insert_safe_defaults before that step. So the recovery console at the server's own address was Stalwart's, and it asks for upstream's registry capability by its old name (urn:stalwart:jmap). Every call got unknownCapability, which the UI shows as "400 API error".

There was a second half to it. The switch-off keyed off the store version mark, and a recovery-mode start still writes that mark. So a store that went through recovery mode first, as the migration guide's step 5 has you do, kept serving upstream's interface on every normal start afterwards too.

  • disable_imported_web_interface now runs in recovery mode as well, before the applications load.
  • It notes that it looked in its own key (_ / Fw, front ends) instead of reading the store version. A store that recovery mode already marked gets the interface switched off on its first start with this fix. An operator who switches the application back on still keeps it on.
  • tests/src/store_version.rs imported_web_interface: new case for a marked but unchecked store.
  • docs/spec/import-0.16.md updated.

Not in this PR: release/2026 never had the switch-off at all (2026.x serves the imported interface in every mode). That branch only takes security and data-loss fixes, so it's left as it is.

CHANGELOG line goes in the next version PR: Fixed: recovery mode no longer serves an imported Stalwart web interface, whose calls all failed (#638).

Fixes #638. A store brought over from Stalwart lists upstream's web interface. Normal startup switches it off the first time inbuxa opens the store, but recovery mode returned from `insert_safe_defaults` before that step. So the recovery console at the server's own address was Stalwart's, and it asks for upstream's registry capability by its old name (`urn:stalwart:jmap`). Every call got `unknownCapability`, which the UI shows as "400 API error". There was a second half to it. The switch-off keyed off the store version mark, and a recovery-mode start still writes that mark. So a store that went through recovery mode first, as the migration guide's step 5 has you do, kept serving upstream's interface on every normal start afterwards too. - `disable_imported_web_interface` now runs in recovery mode as well, before the applications load. - It notes that it looked in its own key (`_` / `Fw`, front ends) instead of reading the store version. A store that recovery mode already marked gets the interface switched off on its first start with this fix. An operator who switches the application back on still keeps it on. - `tests/src/store_version.rs` `imported_web_interface`: new case for a marked but unchecked store. - `docs/spec/import-0.16.md` updated. Not in this PR: release/2026 never had the switch-off at all (2026.x serves the imported interface in every mode). That branch only takes security and data-loss fixes, so it's left as it is. CHANGELOG line goes in the next version PR: Fixed: recovery mode no longer serves an imported Stalwart web interface, whose calls all failed (#638).
jcoffey-dev added 1 commit 2026-11-25 18:43:19 +00:00
Recovery mode: switch off an imported Stalwart web interface (#638)
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 17m47s
312243cd27
A store brought over from Stalwart lists upstream's web interface. Normal
startup switched it off the first time inbuxa opened the store, but recovery
mode returned before that step, so the recovery console at the server's own
address was upstream's. It asks for the registry capability by its old name
(urn:stalwart:jmap) and every call was refused.

The switch-off also keyed off the store version mark, which a recovery-mode
start writes, so a store that went through recovery mode first kept serving
upstream's interface on every normal start afterwards.

The switch-off now runs in recovery mode too, and notes that it looked in
its own key (_ / Fw) instead of reading the store version. A store recovery
mode already marked has the interface switched off on its next start; an
operator who switches it back on keeps it on.
jcoffey-dev merged commit d6f37fd375 into main 2026-11-25 19:11:18 +00:00
jcoffey-dev deleted branch fix/638-recovery-imported-webui 2026-11-25 19:11:18 +00:00
Sign in to join this conversation.