Files
wekan/server
Lauri Ojansivu 64adab5aa6 Fix #6685: document preview 415 from a stale stored name on disk
After the pdf.worker.mjs fix, opening the PDF preview still failed with a
415, now logging "Attachment image stream is unavailable" from
boundedStreamBuffer: getFileStrategy(attachment, 'original').getReadStream()
returned nothing. The regular attachment download route repairs a stored
name/extension that has drifted from what is actually on disk
(normalizeStoredNameOnRead, fs-path-heal) before it reads the file;
authorizedDocument (shared by all three /document-preview/* routes) never
did, so getReadStream() could resolve the wrong path for an attachment whose
name needed that repair, even though the very same attachment downloads and
previews fine as a plain image.

Thanks to rmb82 and xet7 !
2026-09-10 16:34:10 +03:00
..
2026-03-22 17:17:48 +02:00
2021-06-14 15:11:21 +02:00