Skip to main content
Version: 1.3.0

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 built
  • src/core/proof-watcher/proof-watcher.service.ts - Prettier wrap so lint stays at zero
  • src/domains/document/zip.service.spec.ts - Cover a missing receipt and a polygon-only zip
  • certificate-zip.md - Download contract
  • package.json - joi 17.13.9 so the Snyk status can pass
  • package-lock.json - Lockfile for the joi bump
  • .snyk - Ignore minimatch until archiver can take minimatch 11