Skip to content

fix(manifest): reject unsupported format versions - #1612

Open
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/manifest-reject-unsupported-versions
Open

fix(manifest): reject unsupported format versions#1612
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/manifest-reject-unsupported-versions

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What changed

Validate manifest and manifest-list format versions before selecting a reader schema. Versions 1, 2, and 3 remain supported, and a missing version still defaults to version 1.

Why

Manifest lists previously routed every version other than 1 through the v2/v3 reader. Manifest files also accepted arbitrary integers. Unknown versions could therefore be interpreted with a schema whose semantics may not match the file.

Testing

  • Added manifest and manifest-list cases for versions -1, 0, and 4
  • Existing version 1, 2, 3, and missing-version coverage remains intact
  • go test ./...

@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 30, 2026 19:42
@fallintoplace
fallintoplace force-pushed the fix/manifest-reject-unsupported-versions branch from 20e28f2 to 199ba1f Compare August 1, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant