the did:plc update naming at://<handle> is published before set_handle. If set_handle fails (the unique-handle constraint, when the handle was taken here after wanted checked it, or a database error), the method answers an error. By then the directory already gives the group the new handle, while the host's account row, getGroup and relay events still give the old one. The comment there notes the refusal but does not undo the publish.
How to see it
Read against docs/fresh at 4636e6d, the code at: group_handle.rs:142-150 (update_group_handle). Paths are under crates/group-host/src unless they say otherwise. Severity: low.
What you expected
On a set_handle failure, publish an op that restores the previous alsoKnownAs. Or check for the handle and reserve it under the store's lock before publishing.
Where
The host, as built from 4636e6d. Found while checking the docs against the code.
What happened
the did:plc update naming
at://<handle>is published beforeset_handle. Ifset_handlefails (the unique-handle constraint, when the handle was taken here afterwantedchecked it, or a database error), the method answers an error. By then the directory already gives the group the new handle, while the host's account row,getGroupand relay events still give the old one. The comment there notes the refusal but does not undo the publish.How to see it
Read against
docs/freshat 4636e6d, the code at: group_handle.rs:142-150 (update_group_handle). Paths are undercrates/group-host/srcunless they say otherwise. Severity: low.What you expected
On a
set_handlefailure, publish an op that restores the previousalsoKnownAs. Or check for the handle and reserve it under the store's lock before publishing.Where
The host, as built from 4636e6d. Found while checking the docs against the code.