Registry: a stored list skips values this build doesn't know (release/2026) #331

Merged
jcoffey-dev merged 1 commits from fix/skip-unknown-enum-ids-2026 into release/2026 2026-11-09 06:30:29 +00:00
Owner

Cherry-pick of #329 (c987a5a, clean), so that a rollback from 27.1 to 2026.x keeps its administrator roles. 27.1 grants permissions 690–695 to the stored administrator roles, and before this change a 2026.x build couldn't load a role holding them.

It rides the next 2026.x security release; it doesn't get a release of its own, the same as the store mark reader (#247).

Tested on this branch: registry tests (the new test passes); fmt and fork checks; cargo build -p inbuxa and cargo test --workspace --no-run. Also a Role pickled on main with permissions 690, 694 and 695 (enabled and disabled) loads here, keeping only the permissions this build knows.

Cherry-pick of #329 (c987a5a, clean), so that a rollback from 27.1 to 2026.x keeps its administrator roles. 27.1 grants permissions 690–695 to the stored administrator roles, and before this change a 2026.x build couldn't load a role holding them. It rides the next 2026.x security release; it doesn't get a release of its own, the same as the store mark reader (#247). Tested on this branch: registry tests (the new test passes); fmt and fork checks; `cargo build -p inbuxa` and `cargo test --workspace --no-run`. Also a Role pickled on main with permissions 690, 694 and 695 (enabled and disabled) loads here, keeping only the permissions this build knows.
jcoffey-dev added 1 commit 2026-11-09 06:21:16 +00:00
Registry: a stored list skips values this build doesn't know
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 9m6s
da39fbf52c
A stored object's permission list, event list or enum-keyed map failed
to load whole when it held a value the running build didn't know. A
newer release grants its new permissions to the administrator roles it
finds, so after an upgrade an older build could no longer read those
roles, and a rollback lost every administrator's permissions (the
recovery admin still worked).

Lists and enum-keyed maps now leave out a value they don't recognize,
read past it, and load the rest of the object. A damaged stream is
still refused. A role edited and saved on the older build keeps only
the permissions that build knows.

Test: a Permission list and an enum-keyed map holding an id from a
newer build failed to read on main; now the unknown entries are left
out, the known ones and the field after them read, and a list cut
short is still refused.
jcoffey-dev merged commit a2b6f8964a into release/2026 2026-11-09 06:30:29 +00:00
jcoffey-dev deleted branch fix/skip-unknown-enum-ids-2026 2026-11-09 06:30:30 +00:00
Sign in to join this conversation.