Skip to content

fix(publications): canonicalize content-addressed object MIME - #994

Merged
tiankaima-copilot merged 1 commit into
mainfrom
fix/publication-object-mime-canonical
Sep 1, 2026
Merged

fix(publications): canonicalize content-addressed object MIME#994
tiankaima-copilot merged 1 commit into
mainfrom
fix/publication-object-mime-canonical

Conversation

@tiankaima-copilot

Copy link
Copy Markdown
Collaborator

Summary

  • reuse the stored canonical PublicationObject.contentType for every (kind, sha256) object
  • keep r2Key and size validation strict while accepting MIME aliases for identical bytes
  • make batch claims, object planning, presigned upload headers, and completion use the canonical MIME
  • compare revision object semantics by identity/integrity and ignore MIME aliases on replay
  • document the canonical MIME contract and add focused regressions

Validation

  • bunx vitest run tests/unit (403 files, 2532 tests)
  • bunx biome check src/features/publications/server/publication-ingestion-service.ts tests/unit/publication-ingestion-service.test.ts tests/unit/publication-object-service.test.ts docs/contracts/publications.json
  • bunx tsc --noEmit -p tsconfig.typecheck.json
  • bunx tsc --noEmit -p tsconfig.typecheck.tests.json
  • bun run openapi:check

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 1, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
life-ustc 5fd9a60 Sep 01 2026, 01:13 PM

@tiankaima-copilot
tiankaima-copilot merged commit 0ede47c into main Sep 1, 2026
16 of 17 checks passed
@tiankaima-copilot
tiankaima-copilot deleted the fix/publication-object-mime-canonical branch September 1, 2026 13:23
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

github-actions Bot pushed a commit that referenced this pull request Sep 1, 2026
## [1.100.3](v1.100.2...v1.100.3) (2026-09-01)

### Bug Fixes

* **publications:** canonicalize content-addressed object MIME ([#994](#994)) ([0ede47c](0ede47c))
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.100.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants