ObjectRangeInit does not return an error on an incorrect token verb #285

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

Originally created by @tatiana-nspcc on GitHub (Nov 11, 2025).

Current Behavior

ObjectRangeInit returns no error and an empty ObjectRangeReader when an incorrect token verb is used.

Expected Behavior

It should return a clear and understandable error.

Steps to Reproduce

I used a valid PrmObjectRange with VerbObjectGet instead of VerbObjectRange.

Originally created by @tatiana-nspcc on GitHub (Nov 11, 2025). <!-- Provide a general summary of the issue in the Title above --> ## Current Behavior <!-- Tell us what happens instead of the expected behavior --> `ObjectRangeInit` returns no error and an empty `ObjectRangeReader` when an incorrect token verb is used. ## Expected Behavior <!-- Tell us what should happen --> It should return a clear and understandable error. ## Steps to Reproduce <!-- Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. --> I used a valid `PrmObjectRange` with `VerbObjectGet` instead of `VerbObjectRange`.
Author
Owner

@roman-khimov commented on GitHub (Nov 11, 2025):

Doesn't seem to be an SDK issue. Rather it's a node fallback, right, @carpawell, @cthulhu-rider? The question is if it's a feature or a bug. Refs or duplicates https://github.com/nspcc-dev/neofs-node/issues/3547.

@roman-khimov commented on GitHub (Nov 11, 2025): Doesn't seem to be an SDK issue. Rather it's a node fallback, right, @carpawell, @cthulhu-rider? The question is if it's a feature or a bug. Refs or duplicates https://github.com/nspcc-dev/neofs-node/issues/3547.
Author
Owner

@cthulhu-rider commented on GitHub (Nov 12, 2025):

most likely. But having

an empty ObjectRangeReader

this can be considered legit for empty object only. Is this the case @tatiana-nspcc?

@cthulhu-rider commented on GitHub (Nov 12, 2025): most likely. But having > an empty ObjectRangeReader this can be considered legit for empty object only. Is this the case @tatiana-nspcc?
Author
Owner

@tatiana-nspcc commented on GitHub (Nov 12, 2025):

No, the object wasn’t empty, I verified this using ObjectGetInit, which returns the full object. It was 1000 randomly generated bytes.

@tatiana-nspcc commented on GitHub (Nov 12, 2025): No, the object wasn’t empty, I verified this using `ObjectGetInit`, which returns the full object. It was 1000 randomly generated bytes.
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#285
No description provided.