Closed butonic closed 4 months ago
cc @aduffeck any idea?
Nats kv store has an option to base32 encode the keys. It just needs to be activated.
STORAGE_USERS_FILEMETADATA_CACHE_STORE
defaults to memonry
. I set it to nats-js-kv
... which then uses nats ... which seems broken somehow?
uploading a file in the web ui works, but when editing a textfile in the web editor and trying to save the file it fails.
@aduffeck what can go wrong when STORAGE_USERS_FILEMETADATA_CACHE_STORE is not shared between multiple storageproviders? It is not used in the helm charts ... but IIRC it should be shared because it caches file metadata, right ... and that should use the same cache ... STORAGE_USERS_FILEMETADATA_CACHE_STORE defaults to memory ... which worries me ...
Issue doesn't impact 5.0.3
but only master
. Only reva fix and bump needed.
running ocis master and reva edge I get this error line:
and indeed,
:
is not allowed as a key: https://github.com/nats-io/nats.go/blame/main/kv.go#L348yes the regex was touched a few weeks ago, but the previous one also did not allow
:
: https://github.com/nats-io/nats.go/blame/9d4b227179d60d6996c32b4b889d4e325ee06f78/kv.go#L348but ... how did this ever work???
the key is
spaces/so/me-admin-user-id-0000-000000000000/nodes/04/a5/b4/86/-4ce3-492e-a98e-87eddada0146.REV.2024-05-08T14:54:24.01526906Z
and yeah, this diff fixes it: