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

createSpace accepts an empty readableBy, which updateSpace refuses

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

audience returns Some([]) for readableBy: [], and create_space only refuses None. That makes a space no one but the group reads. updateSpace refuses the same list ("readableBy names who reads the space"), so such a space cannot be put back to that state once changed. tests/group_spaces.rs:119 creates one as a convenience but asserts nothing about it.

How to see it

Read against docs/fresh at 4636e6d, the code at: group_spaces.rs:114-115 (create_space), :164-166 (update_space). Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Refuse an empty readableBy in createSpace as updateSpace does (and update the test to name a role).

Where

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