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

Send Http request with encoded URI #344

christophd opened this Issue Mar 12, 2018 · 0 comments


None yet
1 participant

christophd commented Mar 12, 2018

Citrus uses the following method on the Spring RestTemplate

public ResponseEntity exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class responseType, Object... uriVariables) throws RestClientException {
The url is given as String value and Spring will automatically encode this value. When passing in some already encoded String the encoding is done twice. When using non-encoded String value the Spring RestTemplate applies uriVariables logic which is also causing errors.

Citrus should use some other method signature on the RestTemplate that uses the URL object instead of String value

@christophd christophd added this to the v2.7.4 milestone Mar 12, 2018

@christophd christophd removed the READY label Mar 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment