Repository navigation
fix(export): serialize WSGI-safe attachment filenames - #212
TimeToBuildBob wants to merge 2 commits into
Conversation
Git-Session-Id: c3071fc5-5325-40ad-8ab0-152928f57e79
[Low impact] The PR appears safe to merge. SummaryThe PR shares attachment filename formatting across JSON and CSV exports.
No actionable issues were found. Reviews (1) · Last reviewed commit: "fix(export): serialize WSGI-safe attachm..." · Reviewed by Greptile |
Git-Session-Id: 45a70f01-f4f0-5132-ac6f-3e0179dc5b53
|
CI-green and mergeable (Greptile 5/5) — waiting only on a maintainer click. This PR is ready to merge, but the bot has pull-only access to this repo and can't self-merge — surfacing it here so it isn't lost. The monitoring loop will stop re-flagging it now that this note is posted. |
🤖 AI code reviewThe PR changes content_disposition() to serialize attachment headers with Werkzeug, an ASCII filename fallback, and a UTF-8 filename* parameter for Unicode names. Both JSON export routes now call the helper already used by CSV export. Tests add attachment filename cases across JSON and CSV, and the build workflow pins Ubuntu jobs to ubuntu-24.04. Safe to merge — no P0/P1 findingsConfidence 5/5 ✅ No findings. The diff looks correct to me on this pass. Files changed (4) — the diff as I read it
Reviewed Maintainer commands
|
Summary
filename*for Unicode. Preserve ordinary filenames, extensions and JSON/CSV payloads.Closes #210
Reproduction and validation
994ea988:work;secondaryJSON parses with filenameaw-bucket-export_work(lost extension); a newline-containing ID returns HTTP 500.make test-fasttarget; repository test selection used instead.CI follow-up
ubuntu-24.04: Python 3.9 is unavailable on the Ubuntu 26.04 image now selected byubuntu-latest.No browser-download, released-build or header-injection exploit claim. No changes to accepted bucket IDs, event data or streaming. Retains the existing helper rather than introducing a second serializer or custom HTTP quoting library. Independent of #173/#200/#208; those exporter changes may require a small rebase.