[#389] Fix checks of bucket settings
In Put/CopyObject and PutBucketVersioning Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
c399cfbdda
commit
2b6843f8fa
3 changed files with 4 additions and 7 deletions
|
@ -239,6 +239,9 @@ func (n *layer) GetBucketSettings(ctx context.Context, bktInfo *data.BucketInfo)
|
|||
|
||||
obj, err := n.getSystemObjectFromNeoFS(ctx, bktInfo, bktInfo.SettingsObjectName())
|
||||
if err != nil {
|
||||
if errors.IsS3Error(err, errors.ErrNoSuchKey) {
|
||||
return &data.BucketSettings{}, nil
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue