Skip to content

feat: validate file length in zgw document download view#2248

Open
swrichards wants to merge 1 commit intodevelopfrom
extra-validation-document-download
Open

feat: validate file length in zgw document download view#2248
swrichards wants to merge 1 commit intodevelopfrom
extra-validation-document-download

Conversation

@swrichards
Copy link
Collaborator

If the ZGW document backend is misbehaving, for instance because
an intermediate service gateway is broken and returns some kind
of XML message, the user will see a broken download message,
because the announced content-length will not in fact match the
content. In those cases, it's better UX to log and display an
error message.

@codecov-commenter
Copy link

codecov-commenter commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.42%. Comparing base (afb1af2) to head (2a12d42).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2248   +/-   ##
========================================
  Coverage    92.42%   92.42%           
========================================
  Files         1213     1213           
  Lines        47592    47605   +13     
========================================
+ Hits         43985    43998   +13     
  Misses        3607     3607           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@swrichards swrichards marked this pull request as ready for review February 26, 2026 09:05
@swrichards swrichards requested a review from pi-sigma February 26, 2026 12:55
If the ZGW document backend is misbehaving, for instance because
an intermediate service gateway is broken and returns some kind
of XML message, the user will see a broken download message,
because the announced content-length will not in fact match the
content. In those cases, it's better UX to log and display an
error message.

Closes: #2289
@swrichards swrichards force-pushed the extra-validation-document-download branch from 47c76bf to 2a12d42 Compare March 4, 2026 12:03
@swrichards swrichards linked an issue Mar 4, 2026 that may be closed by this pull request
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.

Zaak document download does not validate length

2 participants