policy client: key is too big #54
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-contract#54
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I want the tests pass with the following patch to master
I want to add chain to
policy
contract with namespaceroot
and unprintable name with length38
(I expected key length in contract be1 (prefix) + 2 (length namespace bytes) + 4 (namespace) + 38 (name) = 45
)It seems somewhere between client and neo-go we transform unprintable bytes to several bytes (38 became 60, 66 and some other lengths). If I try use neotest framework everything works as expected
test output:
policy client: keys too bigto policy client: key is too bigThe problem most likely is non-UTF8 json marshaling/unmarshaling (used for RPC)
Let's change everything to bytes then, though it would be nice to have user friendly ID here. Is it possible, or do we hit a key limit?
Yes, we hit key limit since we need the key to consist of namespace, user key derivations and policy name