mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #394] [MERGED] fix(image): map zero-layer OCI manifest to 4xx #399
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#399
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/394
Author: @guozy18
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @yingdi-shan
Base:
main← Head:sync/empty-oci-manifest📝 Commits (1)
53ecdabfix(image): map zero-layer OCI manifest to 4xx📊 Changes
1 file changed (+14 additions, -1 deletions)
View changed files
📝
src/image/oci_image.rs(+14 -1)📄 Description
What
Classify zero-layer OCI manifests as unsupported images so callers receive a client error instead of HTTP 500.
Why
Retrying a rejected empty filesystem manifest cannot fix the supplied image.
Related issue
N/A — focused synchronization of an existing implementation.
Scope and non-goals
One image-classification change and its original regression test.
Design and behavior changes
Return ImageError::UnsupportedImage while preserving the existing message. Existing resolver error propagation maps the error to the client-error path.
Compatibility and operations
Validation
Validated on upstream main
949cec2plus this single commit, independently of the other synchronization PRs.Clippy and the regression tests ran on Linux as a non-root user. Full VM E2E and the full workspace test suite were not run for this focused image-classification change.
Risks and reviewer notes
The rejection behavior is unchanged; only the error category changes. No VM, storage-layout or dependency changes are introduced.
The original author, author date and commit message are preserved. Main-branch adaptations are described above.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.