chadtmiller.com/group-host
atmosphere group host
0
0
Finishing an import without its `--address` can fail on a pending move
Closedchadtmiller.com mentioned this in The command finishes a move it was stopped in
atmosphere group host
What happened
opensocial import <account> --code <code>runscheckImportagain, with only the--addressgiven on this run, and stops onrefused. 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--codealone. The move is still pending and was fine. The start's own message printsopensocial import {account} --code <code>without the address, and USAGE and cli.md say nothing of repeating it. The test (commands.rs:318-335) uses--addressat the start, but its default label is free, so it passes.How to see it
Read against
docs/freshat 4636e6d, the code at: crates/opensocial/src/lib.rs:508-514, 615. Paths are undercrates/group-host/srcunless they say otherwise. Severity: medium.What you expected
In the
--codepath, skip therefusedcheck whencheckImportanswersrecommendedCreds(the caller's move is pending), or check only thatrecommendedCredsis present. Also include--addressin the printed finishing line when one was given.Where
The host, as built from 4636e6d. Found while checking the docs against the code.