Project

Profile

Help

Issue #6154

closed

Redirect to S3 in pulp-content-app is broken in 3.1.0

Added by osapryki about 4 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
4. Urgent
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 66
Quarter:

Description

pulp-content-app returns redirect to invalid S3 URL:

https://bucket.s3.amazonaws.com/artifact/xx/xxx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=********&X-Amz-Date=20200213T141229Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=********?response-content-disposition=attachment;+filename=pulp-artifact-filename

response-content-disposition is attached to the URL that already has query string which gives as a result invalid URL.

Please refer to for the correct example of setting Response-Content-Disposition parameter with django-storages:

https://github.com/ansible/galaxy/blob/devel/galaxy/api/download/views.py#L64

Also available in: Atom PDF