Skip to content

[UNDERTOW-2609] Fix the meaning of the methods in the exchange that return the query string#1855

Merged
fl4via merged 4 commits into
undertow-io:mainfrom
fl4via:UNDERTOW-2609
Jan 7, 2026
Merged

[UNDERTOW-2609] Fix the meaning of the methods in the exchange that return the query string#1855
fl4via merged 4 commits into
undertow-io:mainfrom
fl4via:UNDERTOW-2609

Conversation

@fl4via

@fl4via fl4via commented Jan 7, 2026

Copy link
Copy Markdown
Member

Jira: https://issues.redhat.com/browse/UNDERTOW-2609

This is a bug fix because the getQueryString reflects in external API methods of Undertow and it is affecting its ability to work with other frameworks.

2.2.x PR: #1882
2.3.x PR: #1860
2.4.x PR: #1894

Undertow EE:
Main: undertow-io/undertow-ee#52
1.0.x: undertow-io/undertow-ee#53

fl4via added 2 commits January 4, 2026 16:16
…on decoded query string, and replace all internal usage of this method by the new method, getDecodedQueryString()

Signed-off-by: Flavia Rainone <frainone@redhat.com>
… more sense in the nomenclature of query strings:

* the method getQueryString() is the new standard for getting the
  original, unencoded, query string.
* the method getNonDecodedQueryString is marked for removal in future
  release
* the method setNonDecodedQueryStirng is replaced by
  setUnencodedQueryString and marked for removal as well
* ProxyHandler uses getQueryString instead of getNonDecodedQueryString

Signed-off-by: Flavia Rainone <frainone@redhat.com>
@fl4via fl4via added the bug fix Contains bug fix(es) label Jan 7, 2026
fl4via added 2 commits January 7, 2026 12:54
… HttpServerExchange. The nomenclature queryString refers always to unencoded query, whereas decodedQueryString is the decoded counterpart.

Notice that this makes the invocation of setQueryString mandatory while parsing requests, while setDecodedQueryString is optional and can be used only when decoding of the query is performed.

Signed-off-by: Flavia Rainone <frainone@redhat.com>
…ery string in its entire form instead of the beginning, apply this to AjpParsingUnitTestCase (although the original form of the query string in this case is unreadable)

Signed-off-by: Flavia Rainone <frainone@redhat.com>
@fl4via fl4via added waiting CI check Ready to be merged but waiting for CI check next release This PR will be merged before next release or has already been merged (for payload double check) and removed waiting CI check Ready to be merged but waiting for CI check labels Jan 7, 2026
@fl4via fl4via merged commit 7d1276e into undertow-io:main Jan 7, 2026
85 of 86 checks passed
@fl4via fl4via deleted the UNDERTOW-2609 branch January 7, 2026 20:14
@fl4via fl4via removed the next release This PR will be merged before next release or has already been merged (for payload double check) label Feb 24, 2026
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

Development

Successfully merging this pull request may close these issues.

1 participant