Skip to content

Add DELETE support for cancelling blob uploads#2379

Draft
gerrod3 wants to merge 1 commit into
pulp:mainfrom
gerrod3:cursor/ba816279
Draft

Add DELETE support for cancelling blob uploads#2379
gerrod3 wants to merge 1 commit into
pulp:mainfrom
gerrod3:cursor/ba816279

Conversation

@gerrod3
Copy link
Copy Markdown
Contributor

@gerrod3 gerrod3 commented Jun 1, 2026

Summary

  • Implement DELETE /v2/<name>/blobs/uploads/<uuid> to cancel outstanding blob uploads
  • Return 204 No Content on success and 404 BLOB_UPLOAD_UNKNOWN when the upload does not exist
  • Add functional tests for cancel, unknown upload, and RBAC

Closes #482

Test plan

  • Run pytest pulp_container/tests/functional/api/test_cancel_blob_upload.py
  • Start a blob upload, cancel it with DELETE, and confirm the upload record is removed
  • DELETE a non-existent upload UUID and confirm BLOB_UPLOAD_UNKNOWN
  • Verify an unauthenticated/unauthorized user receives 401

Made with Cursor

Implement the Docker v2 blob upload cancel endpoint so clients can release
in-progress uploads instead of waiting for timeout.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

As a user I can delete a blob upload via docker v2 api

1 participant