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.
What happened
the snapshot is described as
{handle, address, spaces: [{uri, type, skey}]}. In factspacesisspaces_of(aVec<String>of space URIs), andreceivereads it only as strings, withfilter_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/freshat 4636e6d, the code at: lexicons/fyi/opensocial/migratePrepare.json (snapshot description); migration.rs:181-183, 550-555; store.rs:1599. Paths are undercrates/group-host/srcunless they say otherwise. Severity: low.What you expected
Change the lexicon's description to
spaces: [uri](or make it a typed object withspacesan array ofspace-refstrings).Where
The host, as built from 4636e6d. Found while checking the docs against the code.