Describe the bug
Running a POST using '_application/x-www-form-urlencoded_' causes the POST body to be completely empty. The issue is fixed by simply downgrading the Spring Cloud Version to 2020.0.3.
Sample
package ch.example.app;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.PostMapping;
@FeignClient(name = "${security.idp.auth.name}", url = "${security.idp.auth.url}")
public interface IdpFeignClient {
@PostMapping(consumes = "application/x-www-form-urlencoded")
AuthenticationTokenDto getAuthenticationToken(MultiValueMap<String, ?> params);
}
Causes the POST body to be empty. Adding org.springframework.web.bind.annotation.RequestBody on the parameter doesn't fix the issue. What solves it though, is only downgrading to Spring Cloud Version 2020.0.3.
Any suggestions here on how to properly send this type of POST using 2020.0.4?
Comment From: OlgaMaciaszek
@apiatti Thanks for submitting the issue. Please learn how to properly format code and logs. Please provide a minimal, complete, verifiable example that reproduces the issue.
Comment From: spring-cloud-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-cloud-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.