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

Finishing an import without its `--address` can fail on a pending move

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

opensocial import <account> --code <code> runs checkImport again, with only the --address given on this run, and stops on refused. Someone who started with --address club, because the default label (from the account's handle) belongs to another account here, gets "<account> can't move here: ... is taken" when finishing with --code alone. The move is still pending and was fine. The start's own message prints opensocial import {account} --code <code> without the address, and USAGE and cli.md say nothing of repeating it. The test (commands.rs:318-335) uses --address at the start, but its default label is free, so it passes.

How to see it

Read against docs/fresh at 4636e6d, the code at: crates/opensocial/src/lib.rs:508-514, 615. Paths are under crates/group-host/src unless they say otherwise. Severity: medium.

What you expected

In the --code path, skip the refused check when checkImport answers recommendedCreds (the caller's move is pending), or check only that recommendedCreds is present. Also include --address in the printed finishing line when one was given.

Where

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