spring-boot/spring-boot-project
Andy Wilkinson 297e3079d0 Fix handling of UriTemplateRequestEntity in TestRestTemplate
A change [1] in Spring Framework 5.3 means that getUrl() on a
RequestEntity will throw an UnsupportedOperationException if the
entity was created using a template.

This commit updates TestRestTemplate to check for instances of
UriTemplateRequestEntity and to resolve the URI using the
entity's UriTemplateHandler instead of calling getUrl() directly.

Fixes gh-25097

[1] a0f4d81db7
2021-02-04 10:59:00 +00:00
..
spring-boot Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00
spring-boot-actuator Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00
spring-boot-actuator-autoconfigure Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00
spring-boot-autoconfigure Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00
spring-boot-cli Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00
spring-boot-dependencies Build against Spring Data 2020.0.4-SNAPSHOT 2021-01-26 17:35:54 -08:00
spring-boot-devtools Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00
spring-boot-docs Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00
spring-boot-parent
spring-boot-properties-migrator Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00
spring-boot-starters Merge branch '2.3.x' into 2.4.x 2021-01-20 13:57:18 +01:00
spring-boot-test Fix handling of UriTemplateRequestEntity in TestRestTemplate 2021-02-04 10:59:00 +00:00
spring-boot-test-autoconfigure Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00
spring-boot-tools Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00