Skip to content

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 branch 2.0.x.

Master PR: #980
2.1.x PR: #979

@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 the backport The PR is the result of backporting another PR to a maintainance branch label Dec 3, 2020
@fl4via fl4via merged commit 8f37eb2 into undertow-io:2.0.x Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport The PR is the result of backporting another PR to a maintainance branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants