From 09e9d57df99de5c72b91cd8e258618a86c88cb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Fri, 30 Jun 2023 21:23:01 +0200 Subject: [PATCH] Do not return the space root if it wasn't requested --- pkg/storage/utils/decomposedfs/decomposedfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/utils/decomposedfs/decomposedfs.go b/pkg/storage/utils/decomposedfs/decomposedfs.go index 22b56a8a20e..a7f6462042f 100644 --- a/pkg/storage/utils/decomposedfs/decomposedfs.go +++ b/pkg/storage/utils/decomposedfs/decomposedfs.go @@ -786,7 +786,7 @@ func (fs *Decomposedfs) GetMD(ctx context.Context, ref *provider.Reference, mdKe return nil, err } - addSpace := len(fieldMask) == 0 + addSpace := false for _, p := range fieldMask { if p == "space" || p == "*" { addSpace = true