Skip to content

Fix artifact-prefixed uploads with empty media root - #8286

Draft
dralley wants to merge 1 commit into
pulp:mainfrom
dralley:fix-artifact-upload-empty-media-root-8041
Draft

dralley wants to merge 1 commit into
pulp:mainfrom
dralley:fix-artifact-upload-empty-media-root-8041

Conversation

@dralley

@dralley dralley commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Allow fresh artifact uploads whose filenames begin with artifact when MEDIA_ROOT is empty.
  • Check absolute file sources against the active storage backend and match the artifact/ directory boundary, including File objects Django marks uncommitted.
  • Add API and focused storage regression tests.

Closes #8041

AI assistance is disclosed in the commit message.

@dralley
dralley force-pushed the fix-artifact-upload-empty-media-root-8041 branch 6 times, most recently from b07d80b to 3e7159b Compare October 28, 2026 19:59
Check file sources against the active storage path and artifact directory boundary so fresh uploads keep their client filenames.

Closes pulp#8041

Assisted By: Codex
@dralley
dralley force-pushed the fix-artifact-upload-empty-media-root-8041 branch from 3e7159b to 0096d00 Compare October 28, 2026 20:11

This branch has not been deployed

No deployments
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.

[PULP-2502] ArtifactFileField.pre_save spuriously rejects uploads named 'artifact*' when MEDIA_ROOT is empty

1 participant