Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix ServletFileUpload header encoding (#20480) (CP: main) #20503

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

tltv
Copy link
Member

@tltv tltv commented Nov 18, 2024

This change will set JakartaServletFileUpload's header charset to UTF-8 in StreamReceiverHandler when request character encoding is null. This ensures that system's default character encoding is not applied when parsing filename of the uploaded file, unless request's character encoding is set otherwise.
Only for setups without multipart config for servlet.

Fixes: #20417

This change will set ServletFileUpload's header encoding always to UTF-8 in StreamReceiverHandler when request character encoding is null. This ensures that system's default character encoding is not applied when parsing filename of the uploaded file, unless request's character encoding is set otherwise.
Only for setups without multipart config for servlet.

Fixes: #20417
Copy link

sonarcloud bot commented Nov 18, 2024

Copy link

Test Results

1 156 files  ± 0  1 156 suites  ±0   1h 36m 26s ⏱️ + 4m 13s
7 500 tests + 2  7 447 ✅ + 2  53 💤 ±0  0 ❌ ±0 
7 866 runs  +28  7 803 ✅ +28  63 💤 ±0  0 ❌ ±0 

Results for commit 10e3da9. ± Comparison against base commit 76d5e58.

@tepi tepi merged commit fd363ef into main Nov 19, 2024
26 checks passed
@tepi tepi deleted the cherry-pick-20480-to-main branch November 19, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Corrupt filename in Upload component when server's file encoding is not UTF-8
3 participants