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

`migrateReceive` reports a source's error answer as a bad repo

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

the getRepo response's status is not checked. A 404, 500, or HTML page from the source is parsed as a CAR and fails as "a repo that is not the group's, signed and whole", which hides the real cause. Host::pull and import's ask_server both check the status.

How to see it

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

What you expected

Check res.status().is_success() and answer source("getRepo answered {status}"), or fetch through a helper that does.

Where

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