fix: force download on agentic traffic export URLs | LLMO-4888#2527
fix: force download on agentic traffic export URLs | LLMO-4888#2527calvarezg wants to merge 5 commits into
Conversation
…ed URLs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Self-review (fresh-context)[Correctness] In the fast-path (metadata.files), [Test gap] No test asserts that |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…st path (#4591073564) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ests (#4591073564) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
This PR will trigger a patch release when merged. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Please ensure your pull request adheres to the following guidelines:
If the PR is changing the API specification:
If the PR is changing the API implementation or an entity exposed through the API:
ResponseContentDisposition/ResponseContentTypeareResponse*override parameters baked into the presigned URL query string. The stored S3 object is unchanged.Related Issues
LLMO-4888: https://jira.corp.adobe.com/browse/LLMO-4888
Chrome opens agentic traffic export CSVs inline as text instead of downloading them. Firefox and Safari handle it correctly. Root cause: presigned S3 URLs for
spacecat-prod-reports(no CORS) lackedContent-Disposition: attachment, so Chrome renders the response inline.Adds
ResponseContentDisposition: 'attachment; filename="urls.csv"'andResponseContentType: 'text/csv; charset=utf-8'toGetObjectCommandinbuildExportReadyResponse. For multi-part exports the filename becomesurls_part1.csv,urls_part2.csv, etc. No import changes needed — these are first-classGetObjectCommandoptions.Thanks for contributing!