New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed azure artifacts path download. #1194
Conversation
| artifact_file = content_artifact.artifact.file | ||
| content_disposition = f"attachment;filename={content_artifact.relative_path}" | ||
| parameters = {"ResponseContentDisposition": content_disposition} | ||
| url = artifact_file.storage.url(artifact_file.name, parameters=parameters) | ||
| raise HTTPFound(url) | ||
| elif settings.DEFAULT_FILE_STORAGE == "storages.backends.azure_storage.AzureStorage": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daviddavis should not we also set content-disposition header for Azure artifacts?
https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties#request-headers-all-blob-types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would think so but I am not familiar with Azure and I haven't tested with it at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I am not familiar with Azure either. I wanted to finalize this community contribution. Can we merge this as-is and add/fix content-disposition support later on whenever we receive a bug?Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds good to me.
|
Attached issue: https://pulp.plan.io/issues/8427 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
closes #8427
https://pulp.plan.io/issues/8427
Please be sure you have read our documentation on creating PRs:
https://docs.pulpproject.org/contributing/pull-request-walkthrough.html