From 110f6e7864d237314aae3ba9ba0729568dce5af9 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 4fe7abcdc..25ed2b9a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,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 1139aa7e6..879261b0b 100644 --- a/cmd/neofs-cli/modules/object/util.go +++ b/cmd/neofs-cli/modules/object/util.go @@ -328,6 +328,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