From 37f813604f2c775303742642e9d359f264d74e0f Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 9 Nov 2022 16:23:59 +0300 Subject: [PATCH] [#2000] cli: Provide a bearer token to spawned `HEAD` by `DELETE` If a `neofs-cli object delete` operation is performing using a bearer token, add it to the new `HEAD` requests that collects children OIDs. Signed-off-by: Pavel Karpy --- CHANGELOG.md | 1 + cmd/neofs-cli/modules/object/util.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aefd217c..13c14753 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Changelog for NeoFS Node - Broadcasting helper objects (#1972) - `neofs-cli lock object`'s `lifetime` flag handling (#1972) - Do not move write-cache in read-only mode for flushing (#1906) +- Child object collection on CLI side with a bearer token (#2000) ### Removed ### Updated diff --git a/cmd/neofs-cli/modules/object/util.go b/cmd/neofs-cli/modules/object/util.go index 3b62974b..7a6d5014 100644 --- a/cmd/neofs-cli/modules/object/util.go +++ b/cmd/neofs-cli/modules/object/util.go @@ -345,6 +345,8 @@ func collectObjectRelatives(cmd *cobra.Command, cli *client.Client, cnr cid.ID, prmHead.SetAddress(addrObj) prmHead.SetRawFlag(true) + Prepare(cmd, &prmHead) + _, err := internal.HeadObject(prmHead) var errSplit *object.SplitInfoError