client: Get and GetRange handlers miss some invalid messages sequences #255

Open
opened 2025-12-28 18:07:35 +00:00 by sami · 0 comments
Owner

Originally created by @cthulhu-rider on GitHub (Dec 10, 2024).

Get(Range) response payload is defined as oneof, but messages must be streamed in a strict order:

  • all messages with chunk or
  • exactly one message with split_info field

Current Behavior

  1. split_info after chunk -> split info error (Range)
  2. chunk after split_info -> split info error

Expected Behavior

  1. unexpected message instead of chunk part: *object.SplitInfo error
  2. unexpected message after split info response error

Steps to Reproduce

  • corresponding tests from #641

Regression

no

Your Environment

Originally created by @cthulhu-rider on GitHub (Dec 10, 2024). `Get(Range)` response payload is defined as oneof, but messages must be streamed in a strict order: - all messages with `chunk` or - exactly one message with `split_info` field ## Current Behavior 1. `split_info` after `chunk` -> split info error (Range) 2. `chunk` after `split_info` -> split info error ## Expected Behavior 1. `unexpected message instead of chunk part: *object.SplitInfo` error 2. `unexpected message after split info response` error ## Steps to Reproduce * corresponding tests from #641 ## Regression no ## Your Environment * Version of the product used: 335d9fe90f24494944c2888ef385f06f5f81dcfc
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-sdk-go#255
No description provided.