🐛 Mark non-Penpot zip files as unknown in import worker (#10782)

Non-export zip files were tagged as :legacy-zip with the body attached,
causing downstream parsing to crash on unrecognized zip content. Now
they are marked :unknown, matching how other unrecognized formats are
handled, so the import fails gracefully.

AI-assisted-by: deepseek-v4-flash
This commit is contained in:
Andrey Antukh 2026-07-23 10:26:22 +02:00 committed by GitHub
parent f21bd45893
commit b6629c0034
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,7 @@
(if (= (:type manifest) "penpot/export-files")
(let [manifest (decode-manifest manifest)]
(assoc file :type :binfile-v3 :files (:files manifest)))
(assoc file :type :legacy-zip :body body))))
(assoc file :type :unknown))))
(rx/finalize (partial uz/close zip-reader))))
(= "application/octet-stream" mtype)