From 6511deaeeb3c0b7723141ec14554c017f6cb024f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Tue, 14 Feb 2023 15:05:57 +0100 Subject: [PATCH] Fix node id of recycle items --- pkg/storage/utils/decomposedfs/tree/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/utils/decomposedfs/tree/tree.go b/pkg/storage/utils/decomposedfs/tree/tree.go index 38e05c6e948..b4b6c0a063a 100644 --- a/pkg/storage/utils/decomposedfs/tree/tree.go +++ b/pkg/storage/utils/decomposedfs/tree/tree.go @@ -993,7 +993,7 @@ func (t *Tree) readRecycleItem(ctx context.Context, spaceID, key, path string) ( if err != nil { return } - nodeIDRegep := regexp.MustCompile(`.*/nodes/(.*)`) + nodeIDRegep := regexp.MustCompile(`.*/nodes/(.*)\.T\..*`) nodeID = nodeIDRegep.ReplaceAllString(deletedNodePath, "$1") nodeID = strings.ReplaceAll(nodeID, "/", "")