• Andy Wilkinson's avatar
    Apply root to URIs directly rather than relying on expansion · 2f50d515
    Andy Wilkinson authored
    Previously, TestRestTemplate applied the root URI to URIs by
    converting them to a String and then passing the String to the
    RestTemplate delegate. Being a String, meant that the URI passed
    through RestTemplate's standard URI template expansion processing
    using the configured UriTemplateHandler. While this caused the root
    URI to be applied, it also had the unwanted side-effect of
    encoding the URI for a second time.
    
    This commit updates TestRestTemplate so that, when configured with a
    RootUriTemplateHandler, it applies the root URI directly and then
    passes a modified URI to the RestTemplate delegate. Being a URI means
    that no template expansion is performed and the possible double
    encoding is avoided.
    
    Closes gh-8163
    2f50d515
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...