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

An unreadable `describeServer` lets a server's handle be kept as its own

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

in keeps_own, a describeServer that fails (timeout, 5xx, too large) turns into Value::default(), so availableUserDomains counts as none. An account on bsky.social whose alice.bsky.social still resolves is then planned with keeps: true and handle alice.bsky.social. importAccount makes the account here under that handle, and completeImport demands at://alice.bsky.social in alsoKnownAs. The group's handle here is then one the old server hands out, and it stops resolving once that server lets it go. The console path stops on an unreadable describeServer later, in bring_spaces, but only after the copy. The command path calls importAccount first. The test at tests/import.rs:71 only covers a describeServer that answers.

How to see it

Read against docs/fresh at 4636e6d, the code at: import.rs:226-234. Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Fail closed. Treat an unreadable describeServer as "not its own" (keep the address), or refuse the plan with UpstreamFailure.

Where

The host, as built from 4636e6d. Found while checking the docs against the code.