You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Container has salt (nonce) field to avoid container id collisions. This field set via MessageID field in container put request. This field ignored by neofs-node, since container put response has different container id.
If you get container with returned container id, it will return with empty salt (nonce) field. This marks container as invalid.
Expected Behavior
Container put response has the same container id as your locally created structure.
Container get response returns valid container with non empty salt (nonce) field.
Current Behavior
Container put response has different container id from locally created container structure.
Container get response has empty salt (nonce) field, when MessageID was not empty.
Possible Solution
Do not regeneratesalt (nonce) at server side. Return error if MessageID field is not set. Check if salt field did not missed during conversion from proto-defined container structure into neofs-node defined container structure.
Steps to Reproduce
Create container.Container{} structure from neofs-api-go and fill it.
Create container.PutRequest{} and fill the fields according to container structure.
Check if PutResponse.CID field has different container id than container id structure.
Wait container to be stored in morph chain.
Get container with container id from PutResponse.
Check if ID() function returns error because salt(nonce) field is empty.
Your Environment
Version used: neofs-node v0.11.0 at latest neofs-dev-env.
The text was updated successfully, but these errors were encountered:
Container has
salt
(nonce
) field to avoid container id collisions. This field set viaMessageID
field in container put request. This field ignored by neofs-node, since container put response has different container id.If you get container with returned container id, it will return with empty
salt
(nonce
) field. This marks container as invalid.Expected Behavior
Container put response has the same container id as your locally created structure.
Container get response returns valid container with non empty
salt
(nonce
) field.Current Behavior
Container put response has different container id from locally created container structure.
Container get response has empty
salt
(nonce
) field, whenMessageID
was not empty.Possible Solution
Do not regenerate
salt
(nonce
) at server side. Return error ifMessageID
field is not set. Check ifsalt
field did not missed during conversion from proto-defined container structure into neofs-node defined container structure.Steps to Reproduce
container.Container{}
structure fromneofs-api-go
and fill it.container.PutRequest{}
and fill the fields according to container structure.PutResponse.CID
field has different container id than container id structure.PutResponse
.ID()
function returns error becausesalt
(nonce
) field is empty.Your Environment
The text was updated successfully, but these errors were encountered: