From 7c0136d5b03fe8ed2516d57c6ed79cf0f556dc80 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 27 Feb 2026 16:53:09 +0100 Subject: [PATCH] fix(files_sharing): allow strict validation of shares API response sometimes includes `null` for unset, but unset (`undefined`) is something different than `null`. So if `null` is passed we mean `undefined` instead. Signed-off-by: Ferdinand Thiessen --- apps/files_sharing/src/services/SharingService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/src/services/SharingService.ts b/apps/files_sharing/src/services/SharingService.ts index 37e8ecd8b6178..c905f08d85341 100644 --- a/apps/files_sharing/src/services/SharingService.ts +++ b/apps/files_sharing/src/services/SharingService.ts @@ -93,7 +93,7 @@ async function ocsEntryToNode(ocsEntry: any): Promise { owner: ocsEntry?.uid_owner, mime: ocsEntry?.mimetype || 'application/octet-stream', mtime, - size: ocsEntry?.item_size, + size: ocsEntry?.item_size ?? undefined, permissions: ocsEntry?.item_permissions || ocsEntry?.permissions, root: getRootPath(), attributes: {