mirror of
https://github.com/nspcc-dev/neofs-sdk-go.git
synced 2026-03-01 04:29:18 +00:00
client: Detect invalid response message format #256
Labels
No labels
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U2
U2
U3
U4
blocked
bug
client
config
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
pool
question
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-sdk-go#256
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 @cthulhu-rider on GitHub (Dec 10, 2024).
Is your feature request related to a problem? Please describe.
currently, when
Clientreceives protobuf message incompatible with the response structure, it returnsinvalid response signature. This happens because in this case proto decoder:Describe the solution you'd like
when
Clientreceives response message having known fields with broken format (e.g. wrong type), return clear error on thisnote: some fields can be just unsupported (old client, new server). I did not check is it easy to distinguish broken fields from unsupported ones or not, so be careful: unsupported fields must not be denied in general for forward compatibility
Describe alternatives you've considered
do nothing. Technically, there is definitely no valid
response signature. But nobody will know what the actual problem isAdditional context
Clienttesting. Following snippet can also be useful: