Skip to content

[PR #6940/fc99a60a backport][3.89] Fix parameters passed for GCS URL generation#6956

Merged
ggainey merged 1 commit into
3.89from
patchback/backports/3.89/fc99a60a59398909ebab38ffe9e3f2196f9c9855/pr-6940
Sep 18, 2025
Merged

[PR #6940/fc99a60a backport][3.89] Fix parameters passed for GCS URL generation#6956
ggainey merged 1 commit into
3.89from
patchback/backports/3.89/fc99a60a59398909ebab38ffe9e3f2196f9c9855/pr-6940

Conversation

@patchback

@patchback patchback Bot commented Sep 18, 2025

Copy link
Copy Markdown

This is a backport of PR #6940 as merged into main (fc99a60).

When GCP support was originally added in #3481, the parameters were response_disposition and content_type. When it was refactored in #4251, the headers for GCS were mistakenly changed and expanded.

These parameters get used by generate_signed_url method defined in https://github.com/googleapis/python-storage/blob/a8109e0/google/cloud/storage/blob.py#L463, through
https://github.com/jschneier/django-storages/blob/758ad6f/storages/backends/gcloud.py#L350

This PR ensures only the supported parameters are passed to that function call.

closes #6917

When GCP support was originally added, the parameters were
`response_disposition` and `content_type`. When it was refactored in
#4251, the headers were GCS were
mistakenly changed and expanded.

These parameters get used by `generate_signed_url` method defined in
https://github.com/googleapis/python-storage/blob/a8109e0/google/cloud/storage/blob.py#L463,
through
https://github.com/jschneier/django-storages/blob/758ad6f/storages/backends/gcloud.py#L350

This PR ensures only the supported parameters are passed to that
function call.

closes #6917

Signed-off-by: Balasankar 'Balu' C <balu@dravidam.net>
(cherry picked from commit fc99a60)
@ggainey ggainey merged commit c6794c9 into 3.89 Sep 18, 2025
25 of 27 checks passed
@ggainey ggainey deleted the patchback/backports/3.89/fc99a60a59398909ebab38ffe9e3f2196f9c9855/pr-6940 branch September 18, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants