• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 19572786077
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1272-migrations-discrepancy
DEFAULT BRANCH: master
Ran 21 Nov 2025 02:34PM UTC
Jobs 2
Files 878
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Nov 2025 01:59PM UTC coverage: 81.326% (+0.003%) from 81.323%
19572786077

push

github

web-flow
fix(submission): handle missing xml file with digest authentication DEV-1038 (#6428)

### 📣 Summary
Prevent server errors when clients using Digest authentication send
empty submission requests to the openrosa `/<username>/submission`
endpoint.

### 📖 Description
Previously, when a client (such as curl using --digest) attempted to
submit to `https://kobocat/<username>/submission` for a form that does
not allow anonymous submissions, the first unauthenticated request in
the Digest handshake was accepted by the view.

Because this initial request contained no body and no authentication
header, the view attempted to read a `None` file instance, leading to:

```
AttributeError: 'NoneType' object has no attribute 'read'
```
This caused a 500 error before the client’s second (authenticated)
request could be processed.

This PR adds a validation to check whether `xml_file` is missing or
empty. When this happens, the server now fails fast with a proper
`OpenRosaResponseBadRequest (400)` and a clear, informative error
message.

7104 of 11156 branches covered (63.68%)

4 of 4 new or added lines in 1 file covered. (100.0%)

27449 of 33752 relevant lines covered (81.33%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19572786077.1 21 Nov 2025 02:34PM UTC 876
78.94
2 19572786077.2 21 Nov 2025 02:36PM UTC 878
81.29
Source Files on build 19572786077
  • Tree
  • List 878
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c7498dcf on github
  • Prev Build on release/2.025.43 (#19570925910)
  • Next Build on release/2.025.43 (#19642072324)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc