From d1b4458c74066b7f488d59cfb615f03fd16c562e Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Fri, 29 Aug 2025 16:08:17 -0400 Subject: [PATCH] fix: possible missing path properties in /sign When /sign is called with UIDs instead of paths, it is possible to get a response without 'path' properties present in "signed fs item" objects. This commit addresses the issue by fetching paths from FS node objects as a last resort. --- src/backend/src/routers/sign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/src/routers/sign.js b/src/backend/src/routers/sign.js index 0ca16edaf..e23d7ef79 100644 --- a/src/backend/src/routers/sign.js +++ b/src/backend/src/routers/sign.js @@ -151,7 +151,7 @@ module.exports = eggspress('/sign', { // sign try{ let signature = await sign_file(node.entry, item.action) - signature.path = signature.path ?? item.path; + signature.path = signature.path ?? item.path ?? await node.get('path'); signatures.push(signature); } catch(e){