mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
Unexpected behaviour of searchV2 #1380
Labels
No labels
I1
I2
I3
I4
S0
S1
S2
S3
S4
U0
U1
U2
U3
U4
blocked
bug
config
dependencies
discussion
documentation
enhancement
enhancement
epic
feature
go
good first issue
help wanted
neofs-adm
neofs-cli
neofs-cli
neofs-cli
neofs-ir
neofs-lens
neofs-storage
neofs-storage
performance
question
security
task
test
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-node#1380
Loading…
Add table
Add a link
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?
Originally created by @tatiana-nspcc on GitHub (Mar 14, 2025).
Originally assigned to: @cthulhu-rider on GitHub.
I have a piece of code (below) that seems like it should work, but it isn't.
Current Behavior
It returns an error: "rpc failure: rpc error: code = Internal desc = grpc: error while marshaling: string field contains invalid UTF-8."
Expected Behavior
I wish this worked, or at least there was some description in the documentation explaining why it's wrong.
Steps to Reproduce
However, when I changed the order of filters and attributes accordingly:
it works.
I'd prefer the first filter to be by owner because there are many owners, whereas
attributeTokencan only have two possible values.Context
I created objects in one container, each of them having an owner (set by
SetOwner(uid)).The
attributeTokencan have one of two values:attributeTokenS3orattributeTokenSession, where:Your Environment
@cthulhu-rider commented on GitHub (Mar 14, 2025):
@tatiana-nspcc may u pls share value of
tokenType?@tatiana-nspcc commented on GitHub (Mar 14, 2025):
one of two values: attributeTokenS3 or attributeTokenSession, or "s3" and "session"
@cthulhu-rider commented on GitHub (Mar 14, 2025):
reproduced. If client attaches invalid UTF-8 attribute:
if server responds with it:
so, now the user is unable to distinguish which side has a problem. The 1st thing coming to the mind is to pre-check user strings
@cthulhu-rider commented on GitHub (Mar 14, 2025):
i've made a quick patch https://github.com/nspcc-dev/neofs-sdk-go/tree/searchv2-utf8, and @tatiana-nspcc faced original error again. So, the problem is server-side. Comparing the non-working and working inputs, suspicion falls on the requested
object.FilterOwnerID. Will seeUPD: placing owner filter (and attribute) 1st causes the problem. This should help to reproduce for server debug
@cthulhu-rider commented on GitHub (Mar 14, 2025):
reproduced in DevEnv:
@roman-khimov commented on GitHub (Mar 14, 2025):
Binary representation of owner/checksum and some other things can legitimately have zero bytes.