From 15d2091f4291fa6acdb88e0fd0128dc5fcd80364 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 17 Nov 2022 14:00:37 +0300 Subject: [PATCH] [#2069] innerring: Do not panic in `Head` Signed-off-by: Evgenii Stratonikov --- CHANGELOG.md | 1 + pkg/innerring/internal/client/client.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7b0526765..a9113fa571 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ Changelog for NeoFS Node - Losing locking context after metabase resync (#1502) - Removing all trees by container ID if tree ID is empty in `pilorama.Forest.TreeDrop` (#1940) - Concurrent mode changes in the metabase and blobstor (#2057) +- Panic in IR when performing HEAD requests (#2069) ### Removed ### Updated diff --git a/pkg/innerring/internal/client/client.go b/pkg/innerring/internal/client/client.go index cab9ad3b17..c3ea3e96fd 100644 --- a/pkg/innerring/internal/client/client.go +++ b/pkg/innerring/internal/client/client.go @@ -202,6 +202,7 @@ func (x Client) HeadObject(prm HeadObjectPrm) (*HeadObjectRes, error) { cliPrm.FromContainer(prm.objAddr.Container()) cliPrm.ByID(prm.objAddr.Object()) + cliPrm.UseKey(*x.key) cliRes, err := x.c.ObjectHead(prm.ctx, cliPrm) if err == nil {