Skip to content

Allow query parameters without value in proxied URL.#4228

Open
zamzterz wants to merge 1 commit into
spring-cloud:mainfrom
zamzterz:gh-3197
Open

Allow query parameters without value in proxied URL.#4228
zamzterz wants to merge 1 commit into
spring-cloud:mainfrom
zamzterz:gh-3197

Conversation

@zamzterz

Copy link
Copy Markdown

Align the behavior of query parameters in MvcUtils with HierarchicalUriComponents from spring-web to
allow query parameters without value to be passed along in the proxied request by ProxyExchangeHandlerFunction.

A query parameter?param in the incoming request is still parsed as "param" -> [""] by webmvc, but this change allows custom filter implementations (like the one in the included test gatewayRouterFunctionsEmptyQueryParamFilter) to transform incoming query parameters to be preserved without trailing equal sign such that ?param in the original request is not proxied as ?param=.

Fixes gh-3197.

Align the behavior of query parameters in MvcUtils
with HierarchicalUriComponents from spring-web to
allow query parameters without value
to be passed along in the proxied request by
ProxyExchangeHandlerFunction.

This allows custom filter implementations to
transform incoming query parameters to be preserved
without trailing equal sign such that
'?param' in the original request is not proxied
as ´?param='.

Fixes spring-cloudgh-3197.

Signed-off-by: Samuel Gulliksson <samuel.gulliksson@gmail.com>
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.

Unexpected changes to query string

2 participants