Skip to content

Add GET blob upload status endpoint#2378

Draft
gerrod3 wants to merge 3 commits into
pulp:mainfrom
gerrod3:cursor/fb3a02ee
Draft

Add GET blob upload status endpoint#2378
gerrod3 wants to merge 3 commits into
pulp:mainfrom
gerrod3:cursor/fb3a02ee

Conversation

@gerrod3
Copy link
Copy Markdown
Contributor

@gerrod3 gerrod3 commented Jun 1, 2026

Summary

  • Implement GET and HEAD on /v2/<name>/blobs/uploads/<uuid> to report resumable blob upload progress per the Docker Registry v2 API
  • Return 204 No Content with Docker-Upload-UUID, Location, and Range headers via the existing UploadResponse
  • Add functional test coverage for upload status retrieval

Closes #483

Test plan

  • Run pytest pulp_container/tests/functional/api/test_push_content.py::test_blob_upload_status
  • Verify GET /v2/<name>/blobs/uploads/<uuid> returns 204 with expected headers after initiating an upload
  • Verify HEAD on the same URL returns the same status headers

Made with Cursor

Implement Docker v2 GET/HEAD on /v2/<name>/blobs/uploads/<uuid> to report
resumable upload progress. Closes pulp#483.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use local_registry.get_response with POST to obtain a push-scoped token
instead of get_auth_for_url, which probes with GET and gets pull scope.

Co-authored-by: Cursor <cursoragent@cursor.com>
Reuse the push-scoped bearer token from POST with requests.get/head
instead of passing auth into local_registry.get_response.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gerrod3
Copy link
Copy Markdown
Contributor Author

gerrod3 commented Jun 1, 2026

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

As a user I can retrieve a blob upload status via docker v2 api

1 participant