Skip to content

Add GET blob upload status endpoint#2378

Merged
pedro-psb merged 1 commit into
pulp:mainfrom
gerrod3:cursor/fb3a02ee
Jul 1, 2026
Merged

Add GET blob upload status endpoint#2378
pedro-psb merged 1 commit into
pulp:mainfrom
gerrod3:cursor/fb3a02ee

Conversation

@gerrod3

@gerrod3 gerrod3 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

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

@gerrod3

gerrod3 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@gerrod3 gerrod3 marked this pull request as ready for review July 1, 2026 13:55
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>

@pedro-psb pedro-psb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty straightfoward.
TIL get with 204 is equivalent to head.

@pedro-psb pedro-psb merged commit b109af0 into pulp:main Jul 1, 2026
13 of 14 checks passed
@gerrod3 gerrod3 deleted the cursor/fb3a02ee branch July 1, 2026 14:54
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.

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

2 participants