frostfs-node/pkg/services/object/put
Leonard Lyubich 096acb2a44 [#580] v2/object/put: Check payload size of the relayed objects
NeoFS network dictates the limitation of the maximum size of the "finished"
objects. The payload size of an object is recorded in its header. When
writing finished objects, the nodes must check:

  * satisfying the constraint;
  * matching the value in the header to the number of payload bytes.

Provide value returned by `MaxSizeSource` component to `validatingTarget`.
Check max size value during the stream of the "finished" objects. Check
header value during the streaming and on-close. Check payload size in v2
relay scenario.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-09 12:08:37 +03:00
..
v2 [#580] v2/object/put: Check payload size of the relayed objects 2021-06-09 12:08:37 +03:00
distributed.go [#501] object/put: relay requests for signed objects 2021-06-02 10:31:14 +03:00
local.go [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
prm.go [#501] object/put: relay requests for signed objects 2021-06-02 10:31:14 +03:00
remote.go [#549] network/cache: Change Get signature 2021-05-27 17:07:04 +03:00
res.go [#33] service/object: Implement object Put distributed service 2020-10-02 11:25:35 +03:00
service.go [#549] network/cache: Change Get signature 2021-05-27 17:07:04 +03:00
streamer.go [#580] v2/object/put: Check payload size of the relayed objects 2021-06-09 12:08:37 +03:00
validation.go [#580] v2/object/put: Check payload size of the relayed objects 2021-06-09 12:08:37 +03:00