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: 24.5) #20509

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

tltv
Copy link
Member

@tltv tltv commented Nov 19, 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 19, 2024

Copy link

Test Results

1 146 files  ± 0  1 146 suites  ±0   1h 26m 15s ⏱️ - 1m 39s
7 475 tests + 2  7 425 ✅ + 2  50 💤 ±0  0 ❌ ±0 
7 837 runs  +13  7 777 ✅ +13  60 💤 ±0  0 ❌ ±0 

Results for commit 5d85d0e. ± Comparison against base commit 4b1930a.

@tepi tepi merged commit da9b46d into 24.5 Nov 19, 2024
26 checks passed
@tepi tepi deleted the cherry-pick-20480-to-24.5 branch November 19, 2024 09:17
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.

3 participants