Skip to content

[PR #1459/def286e8 backport][3.38] Keep the upload filename when the storage backend renames the file - #1492

Merged
jobselko merged 1 commit into
3.38from
patchback/backports/3.38/def286e8b1513a7d9971a3e6058d9a0541986cab/pr-1459
Nov 25, 2026
Merged

jobselko merged 1 commit into
3.38from
patchback/backports/3.38/def286e8b1513a7d9971a3e6058d9a0541986cab/pr-1459

Conversation

@patchback

@patchback patchback Bot commented Nov 25, 2026

Copy link
Copy Markdown

This is a backport of PR #1459 as merged into main (def286e).

The Google Cloud Storage backend sets the name of the saved file object to its storage path. The upload serializer read file.name after it saved the artifact, so the upload task got the storage path instead of the package filename. The task then failed to find a known extension, and the upload was lost. The serializer now reads the filename before it saves the artifact.

Assisted By: Claude Code (claude-opus-5-5)

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Fixed uploads to the PyPI endpoint failing when artifacts are stored in Google Cloud Storage. Upload validation now uses the original filename even if storage renames the file.

Keep the upload filename when the storage backend renames the file

(cherry picked from commit def286e)
@jobselko
jobselko merged commit 6e88260 into 3.38 Nov 25, 2026
14 checks passed
@jobselko
jobselko deleted the patchback/backports/3.38/def286e8b1513a7d9971a3e6058d9a0541986cab/pr-1459 branch November 25, 2026 12:59
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.

1 participant