From f4f3b6d1ceb9d2fbaada311802c9e75dcc28907a Mon Sep 17 00:00:00 2001 From: Eric Le Lay Date: Thu, 19 Feb 2026 15:42:45 +0100 Subject: [PATCH] Fix #2199 blob chunk upload should return 202 not 204 status=202 is requested in the OCI spec. podman doesn't care but regctl fails when receiving 204. --- CHANGES/2199.bugfix | 2 ++ pulp_container/app/registry_api.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 CHANGES/2199.bugfix diff --git a/CHANGES/2199.bugfix b/CHANGES/2199.bugfix new file mode 100644 index 000000000..9ed93c6ca --- /dev/null +++ b/CHANGES/2199.bugfix @@ -0,0 +1,2 @@ +Fixed the status code on successful ``PATCH`` on blob partial updates to be ``202`` +as requested by the OCI spec. diff --git a/pulp_container/app/registry_api.py b/pulp_container/app/registry_api.py index 8fa771a82..766c0fb0f 100644 --- a/pulp_container/app/registry_api.py +++ b/pulp_container/app/registry_api.py @@ -961,7 +961,7 @@ def partial_update(self, request, path, pk=None): upload.size += length upload.save() - return UploadResponse(upload=upload, path=path, request=request, status=204) + return UploadResponse(upload=upload, path=path, request=request) def put(self, request, path, pk=None): """