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

kobotoolbox / kpi / 19572786077 / 1
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1259-remove-metadata-endpoints
DEFAULT BRANCH: master
Ran 21 Nov 2025 02:34PM UTC
Files 876
Run time 27s
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: 78.936% (+0.002%) from 78.934%
19572786077.1

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.

6900 of 11206 branches covered (61.57%)

26637 of 33745 relevant lines covered (78.94%)

0.79 hits per line

Source Files on job 19572786077.1
  • Tree
  • List 876
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 19572786077
  • c7498dcf on github
  • Prev Job for on release/2.025.43 (#19570925910.1)
  • Next Job for on release/2.025.43 (#19642072324.1)
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