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

kobotoolbox / kpi / 16322266002
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 16 Jul 2025 03:05PM UTC
Jobs 1
Files 638
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

16 Jul 2025 02:27PM UTC coverage: 80.777% (+0.003%) from 80.774%
16322266002

push

github

web-flow
fix(auditLogs): catch TypeErrors from copying request data DEV-711 (#5920)

### đŸ“Ŗ Summary
Fix an error that was preventing submissions with large uploads.


### 💭 Notes
Fixes an issue wherein submissions with large uploaded files attached
were failing. This was due to an issue in the audit log code, where we
copied request.data to the internal WSGI request for later processing by
the middleware. The bug emerged because Django uses
`TemporaryUploadedFile`s when uploading files larger than the configured
max size, and those cannot be copied using deepcopy.
This PR just catches that error, logs it, and moves on. It's not the
most foolproof of solutions if we ever need to log those requests but
for now we don't and this is blocking a fairly urgent fix (DEV-708). It
also means we don't have to go into the request.data() dictionary to
figure out what is in there before trying to copy it. Since
request.data() could be fairly large it will save some time.


### 👀 Preview steps

1. â„šī¸ have an account and a project with an upload question
2. Update FILE_UPLOAD_MAX_MEMORY_SIZE to 100
3. Add a submission including a file
4. 🔴 [on release] The submission fails with `TypeError: cannot pickle
'_io.BufferedRandom' object`
5. đŸŸĸ [on PR] The submission goes through

6147 of 9740 branches covered (63.11%)

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

23208 of 28731 relevant lines covered (80.78%)

0.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16322266002.1 16 Jul 2025 03:05PM UTC 638
80.78
Source Files on build 16322266002
  • Tree
  • List 638
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 5bb92879 on github
  • Prev Build on release/2.025.14 (#16301206110)
  • Next Build on release/2.025.14 (#16344604802)
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

© 2025 Coveralls, Inc