liftedinit / many-rs

Rust libraries for the Many Protocol
Apache License 2.0
5 stars 11 forks source link

`kvstore.list` returns deleted keys #386

Closed stanleyjones closed 1 year ago

stanleyjones commented 1 year ago

Start empty.

❯ ./target/debug/kvstore http://localhost:8010 --pem ./keys/id1.pem list

Add a keyvalue pair.

❯ ./target/debug/kvstore http://localhost:8010 --pem ./keys/id1.pem put foo bar
null

List the keys.

❯ ./target/debug/kvstore http://localhost:8010 --pem ./keys/id1.pem list
foo

Delete the key.

❯ ./target/debug/kvstore http://localhost:8010 --pem ./keys/id1.pem disable foo
null

List again.

❯ ./target/debug/kvstore http://localhost:8010 --pem ./keys/id1.pem list
foo

Get the value.

❯ ./target/debug/kvstore http://localhost:8010 --pem ./keys/id1.pem get foo

2023-06-08T20:44:11.144088Z ERROR kvstore: Error returned by server:
|  The key was disabled by its owner.

Expected behavior: Disabled keys shouldn't be returned in kvstore.list.