-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Mattias Severson opened SPR-9832 and commented
The RestTemplate erroneously infers "0" for an empty string values.
- Execute the attached test RestTemplateTest using the attached pom.xml file.
- The test fails, the response from the RestTemplate is {"lhs":"1 U.S. dollar","rhs":"1 U.S. dollar","error":"0","icc":true}
For comparison, change the spring version to any 3.0.x version, or perform a request to http://www.google.com/ig/calculator?q=1USD=?EUR from a browser. The response is {lhs: "1 U.S. dollar",rhs: "0.774833411 Euros",error: "",icc: true}
Affects: 3.1 RC1, 3.1.2
Attachments:
- pom.xml (2.74 kB)
- RestTemplateTest.java (1.02 kB)
Issue Links:
- UriComponentsBuilder incorrectly disallows "=" as query parameter value [SPR-9969] #14603 UriComponentsBuilder incorrectly disallows "=" as query parameter value ("is duplicated by")
- RestTemplate fails to correctly parse some HTTP URI parameters [SPR-9791] #14424 RestTemplate fails to correctly parse some HTTP URI parameters ("is duplicated by")
- UriComponentsBuilder.query(String) does not always match properly the query [SPR-9474] #14109 UriComponentsBuilder.query(String) does not always match properly the query ("is duplicated by")
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug