https://bz.apache.org/bugzilla/show_bug.cgi?id=69949
Bug ID: 69949
Summary: Corrupted uploads from Safari on Tomcat 9/10/11
Product: Tomcat 9
Version: 9.0.x
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Connectors
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
Created attachment 40150
--> https://bz.apache.org/bugzilla/attachment.cgi?id=40150&action=edit
Contents of github.com/ajreed79/tomcat-upload-test
When uploading files around 5MB in size to Tomcat 9, 10, or 11 from Safari,
they are corrupted. The size seems to always be correct, but the data is
corrupted.
Environment:
1. Tomcat 9, 10, or 11. I've tried on:
- 9.0.98
- 9.0.111
- 9.0.115
- 10.1.52
- 11.0.18
2. Safari
- iOS 26.1.1
- Mac
- It happens on the latest and older versions of Safari
3. Java version doesn't seem to matter, but I just tested with OpenJDK 25.0.2
on Fedora 43
Steps to Reproduce:
1. Get code from https://github.com/ajreed79/tomcat-upload-test or the attached
tomcat-upload-test.zip . The code is for Tomcat 9. The git repo has tomcat-10
and tomcat-11 branches.
2. Run `./gradlew run`
3. Open https://localhost:8443 in Safari
4. Click "Run Both Tests"
5. Observe corruption
Observations:
1. Only happens with HTTP/2
2. Only happens with HTTPS (which is required for HTTP/2)
3. Only happens with useAsyncIO=true
4. Setting useSendFile=false did not help
5. Changing overheadDataThreshold and related paramters did not help
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]