Skip to content

FSTree handles big headers incorrectly #3858

@roman-khimov

Description

@roman-khimov

Expected Behavior

Store an object with header of MaxHeaderLen-1 size. GET/HEAD the object correctly.

Current Behavior

There will be a problem with some requests because FSTree APIs returns 16K from the beginning of the object and it's not the same as header (includes OID, signature and some protobuf overhead).

Possible Solution

Limit signature size (invocation script is 1K, verification script is also 1K in N3, that's a good start), fetch like 20K from storage.

Context

#3810 (comment)

Regression

Kinda. Before binary/streaming APIs it worked by always pulling whole object from the storage.

Your Environment

  • Version used: 0.51.1

Metadata

Metadata

Assignees

Labels

I4No visible changesS4RoutineU2Seriously plannedbugSomething isn't workingneofs-storageStorage node application issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions