• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

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

Build:
Build:
LAST BUILD BRANCH: dev-1272-migrations-discrepancy
DEFAULT BRANCH: master
Ran 25 Nov 2025 03:22PM UTC
Files 876
Run time 43s
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

25 Nov 2025 02:49PM UTC coverage: 78.936%. Remained the same
19673625562.1

push

github

web-flow
fix(submission): fix anonymous submission failures from `KoboCollect` DEV-1347 (#6499)

### 📣 Summary
Ensure `KoboCollect` can submit anonymously by returning 204 for `HEAD
/<username>/submission` before applying the [empty-request
authentication
check](https://github.com/kobotoolbox/kpi/blob/b4b82b809/kobo/apps/openrosa/apps/api/viewsets/xform_submission_api.py#L253-L257),
while keeping Digest authentication behavior intact.


### 📖 Description
After adding a guard to return `401` for unauthenticated empty-body POST
requests (required for Digest auth handshake), KoboCollect began failing
anonymous submissions. KoboCollect performs an initial HEAD request to
`/<username>/submission` to probe server availability. Because the guard
ran before the HEAD handler, this probe was incorrectly treated as
unauthenticated, returning 401. KoboCollect interprets a 401 on HEAD as
"credentials required" and therefore never sends the actual XML payload,
showing the login screen instead.

Enketo continued to work because it tolerates a 401 on the first probe,
but KoboCollect does not.

6900 of 11206 branches covered (61.57%)

26637 of 33745 relevant lines covered (78.94%)

0.79 hits per line

Source Files on job 19673625562.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 19673625562
  • 97862a03 on github
  • Prev Job for on release/2.025.43 (#19642072324.1)
  • Next Job for on release/2.025.43 (#19685538445.2)
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