From aa8c12f4f3719190c87bea7eb3b1adcc953980b1 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 29 Oct 2025 14:32:23 +0300 Subject: [PATCH] sn/storage: Fix PUT of big object to EC container through SN outside it Omission of 12162f697626b69d16399074148202800456cd1b. Previously, attempt to create "big" object through SN outside EC container led to the following error: ``` status: code = 1024 message = missing EC part info in signed object ``` It happened on attempt to save produced LINK object which has no EC attributes (part info). Fixes #3658. Signed-off-by: Leonard Lyubich --- pkg/services/object/put/streamer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/object/put/streamer.go b/pkg/services/object/put/streamer.go index 357e77eb4d..e908a9d769 100644 --- a/pkg/services/object/put/streamer.go +++ b/pkg/services/object/put/streamer.go @@ -178,7 +178,7 @@ func (p *Streamer) preparePrm(prm *PutInitPrm) error { } cnrNodes := prm.containerNodes.Unsorted() ecRulesN := len(prm.containerNodes.ECRules()) - if typ := prm.hdr.Type(); ecRulesN > 0 && typ != object.TypeTombstone && typ != object.TypeLock { + if typ := prm.hdr.Type(); ecRulesN > 0 && typ != object.TypeTombstone && typ != object.TypeLock && typ != object.TypeLink { ecPart, err := iec.GetPartInfo(*prm.hdr) if err != nil { return fmt.Errorf("get EC part info from object header: %w", err)