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

Fixed Traverson double encoding issue #382

Closed
wants to merge 1 commit into from

Conversation

tommyb82
Copy link

@tommyb82 tommyb82 commented Sep 2, 2015

@olivergierke @gregturn

Hi guys, here's the PR with squashed commits, rebased onto current master (hope that's correct - first time doing some of this stuff for me..).

It was a little more complicated in the end as my original change had broken another Traverson test case (TraversonTest#returnsTemplatedLinkIfRequested). So there's now an additional private helper method in there to provide the option of traversing to a final, expanded URI (as required for the calls to RESTOperations#exchange(), or alternatively traverse to a templated String

Hope that makes sense, let me know what you think.

odrotbohm pushed a commit that referenced this pull request Sep 3, 2015
We now avoid calling URI.toString() to early to prevent the need to re-parse it and thus accidentally cause a double-encoding.

Original pull request: #382.
@odrotbohm
Copy link
Member

Polished and merged. Thanks!

@odrotbohm odrotbohm closed this Sep 3, 2015
@odrotbohm odrotbohm added this to the 0.20 milestone Sep 3, 2015
@odrotbohm odrotbohm changed the title Fix to Traverson double encoding issue (337) plus test case Fixed Traverson double encoding issue Sep 3, 2015
@odrotbohm odrotbohm self-assigned this Sep 3, 2015
@tommyb82
Copy link
Author

tommyb82 commented Sep 3, 2015

Awesome, great to have contributed.

@gregturn
Copy link
Contributor

gregturn commented Sep 3, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants