Review #15 P3 batch: LocalDb (005–007) and Auth (008–010) #46
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P3 findings from the scadaproj#15 shared-library review (verified at
91fb2b4) — full description, failure scenario and fix for each incode-reviews/<Lib>/findings.md. Split out any that grow.Fixed on main: LocalDb-005 (
fd46999) RegisterReplicated refuses AUTOINCREMENT keys (reproduced: both nodes ended with only '1:from B'); plain INTEGER PRIMARY KEY still accepted, cross-node key uniqueness documented — ScadaBridge's 12 and OtOpcUa's 5 replicated tables use text/composite keys, unaffected. LocalDb-006 (76e9c35) one shared JsonPathSql escaping helper for apply + snapshot (2-node tests failed with 'near "key": syntax error'). LocalDb-007 (b9a096c) README refreshed. Auth-008 (b33f0f9) no schema change: over-length key records throw, >64-char ids return not-found without querying, exact key-id matching, importer reports KeyIdCollisions/KeysRejected (SQL Server suite 101/101 live). Auth-009 (9ec0da1) username = the attribute value matching what was typed. Auth-010 (c436653) new ApiKeyFailure.StoreUnavailable (appended); only cancellation throws. Consumer changes: AUTOINCREMENT tables now refused at registration; SQL Server key ids case-exact; over-length key creation throws; ApiKeyImportResult gains two lists. Evidence: LocalDb 249/249; Auth 363 passed / 81 skipped offline and 440 / 4 LDAP-live skips against a throwaway SQL Server 2022; each new regression test fails without its fix; findings 0 open, README --check consistent. Ships in LocalDb 0.3.6 / Auth 0.4.4 (unpublished).