fix(webdav): PDF validation for WebDAV sync (BIT-26608) #5

Merged
spark merged 1 commits from task/BIT-26608-webdav-pdf-validation into main 2026-07-15 01:37:28 +01:00
Owner

Fixes invoice validation false negatives for WebDAV files like 1784074260.pdf.

Fixes invoice validation false negatives for WebDAV files like 1784074260.pdf.
spark added 1 commit 2026-07-15 01:37:23 +01:00
WebDAV sync rejected valid files like 1784074260.pdf when the PDF magic
bytes were not at offset 0 (whitespace/BOM) or when a mobile scanner stored
JPEG bytes under a .pdf name. Scan the first 1KB for %PDF-, allow image
fallback for .pdf, and include validation detail in API errors.

Co-authored-by: Cursor <[email protected]>
spark merged commit ac932323c8 into main 2026-07-15 01:37:28 +01:00
spark deleted branch task/BIT-26608-webdav-pdf-validation 2026-07-15 01:37:29 +01:00
Sign in to join this conversation.