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

Correct Encoding and restore decodeSlash in QueryTemplate #1160

Merged
merged 3 commits into from
Jan 18, 2020

Conversation

kdavisk6
Copy link
Member

Fixes #1156

Collection Format was encoding query string values unnecessarily
due to changes introduced in #1138 and #1139 that encode template
values before appending them to the query string.

In addition, decodeSlash flags that were accidentally removed,
have been restored in QueryTemplate.

@kdavisk6 kdavisk6 added the bug Unexpected or incorrect behavior label Jan 17, 2020
Copy link
Member

@velo velo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, 2 questions that you can feel free to ignore if you wanna rush this fix out

core/src/main/java/feign/RequestTemplate.java Outdated Show resolved Hide resolved
core/src/main/java/feign/template/UriUtils.java Outdated Show resolved Hide resolved
@kdavisk6 kdavisk6 force-pushed the gh-1156-double-encoding branch 2 times, most recently from f07a8fe to ddc8172 Compare January 18, 2020 01:36
Fixes OpenFeign#1156

Collection Format was encoding query string values unnecessarily
due to changes introduced in OpenFeign#1138 and OpenFeign#1139 that encode template
values before appending them to the query string.

In addition, `decodeSlash` flags that were accidentally removed,
have been restored in QueryTemplate.
@kdavisk6 kdavisk6 merged commit 819b2df into OpenFeign:master Jan 18, 2020
@kdavisk6 kdavisk6 deleted the gh-1156-double-encoding branch January 18, 2020 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Query params will be encoded twice in newest Version 10.7.2
2 participants