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

[UNDERTOW-1802] Improve FormEncodedDataDefinition to handle chars in configured encoding #980

Merged
merged 1 commit into from Dec 3, 2020

Conversation

rmartinc
Copy link
Contributor

@rmartinc rmartinc commented Oct 21, 2020

Issue: https://issues.redhat.com/browse/UNDERTOW-1802

The FormEncodedDataParser has been modified to also perform a decode if a non-ascii (n < 0) character is found. The URLUtils.decode method was already prepared to handle those bytes.

The test now uses the payload instead of the headers to return the data (because now strange chars can be returned). Finally a method that sends direct UTF-8 characters is added to include a test for this specific use-case.

PR for master branch.

2.1.x PR: #979
2.0.x PR: #978

@rmartinc rmartinc changed the title [UNDERTOW-1802] Improve FormEncodedDataDefinition to use ByteArrayOutputStream instead of converting each one byte to one character [UNDERTOW-1802] Improve FormEncodedDataDefinition to handle chars in configured encoding Oct 22, 2020
@fl4via fl4via added bug fix Contains bug fix(es) next release This PR will be merged before next release or has already been merged (for payload double check) labels Dec 3, 2020
@fl4via fl4via merged commit 3693543 into undertow-io:master Dec 3, 2020
@fl4via fl4via removed the next release This PR will be merged before next release or has already been merged (for payload double check) label Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Contains bug fix(es)
Projects
None yet
2 participants