~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A handle change can leave the directory and the host disagreeing

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

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.