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

#394 #395

Merged
merged 3 commits into from
Mar 26, 2018
Merged

#394 #395

merged 3 commits into from
Mar 26, 2018

Conversation

piotr-wilczynski
Copy link
Contributor

Added encoding of uri parameter names

Added encoding of uri parameter names
Copy link
Contributor

@marcinczeczko marcinczeczko left a comment

Choose a reason for hiding this comment

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

Looks fine. Thanks for the contribution

@@ -138,16 +138,16 @@ private String buildRepoUri(ClientRequest repoRequest) {
if (params != null && params.names() != null && !params.names().isEmpty()) {
uri.append("?")
.append(params.names().stream()
.map(name -> new StringBuilder(name).append("=")
.append(encodeParamValue(params.get(name))))
.map(name -> new StringBuilder(encode(name)).append("=")
Copy link
Member

Choose a reason for hiding this comment

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

Please write the Unit test for this case.

Copy link
Contributor

@rkarwacki rkarwacki Mar 24, 2018

Choose a reason for hiding this comment

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

Test added, as a part of SampleApplicationTest.

@malaskowski
Copy link
Member

Please also remember about updating the changelog.

…ame contains spaces. Remove redundant ternary operator in repository connector
@malaskowski malaskowski merged commit ce157f9 into master Mar 26, 2018
@malaskowski malaskowski deleted the bugfix/encode-parameter-names branch March 26, 2018 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants