fix-zip-requires-receipt
🐛 Bug Fixes
[A zip no longer contains a certificate without its proof]
Goal: A download must not return a certificate whose receipt is missing.
Solution: Chainpoint and ots stay in the zip only when the certificate and the receipt are both present. A missing half drops that proof type. Polygon stays only beside another included proof. Nothing left, or polygon alone, is 409 for an automatic agent and 422 for a manual one.
Files Modified:
src/domains/document/zip.service.ts- Drop incomplete proofs before the archive is builtsrc/core/proof-watcher/proof-watcher.service.ts- Prettier wrap so lint stays at zerosrc/domains/document/zip.service.spec.ts- Cover a missing receipt and a polygon-only zipcertificate-zip.md- Download contractpackage.json- joi 17.13.9 so the Snyk status can passpackage-lock.json- Lockfile for the joi bump.snyk- Ignore minimatch until archiver can take minimatch 11