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

The `migratePrepare` lexicon gives the snapshot's spaces the wrong shape

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

the snapshot is described as {handle, address, spaces: [{uri, type, skey}]}. In fact spaces is spaces_of (a Vec<String> of space URIs), and receive reads it only as strings, with filter_map(as_str). A client that builds a snapshot by the lexicon gets every space dropped, without notice.

How to see it

Read against docs/fresh at 4636e6d, the code at: lexicons/fyi/opensocial/migratePrepare.json (snapshot description); migration.rs:181-183, 550-555; store.rs:1599. Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Change the lexicon's description to spaces: [uri] (or make it a typed object with spaces an array of space-ref strings).

Where

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