Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.20.4
-
None
-
Novice
Description
Hi team,
Issue
The parameter mapHttpMessageFormUrlEncodedBody is not useful
Root Issue
If you have a request with a POST parameter having a CR/LF in one of its values, it will be mapped to an HTTP Header, causing an Exception. CR/LF are not allowed header characters in HTTP protocol nor camel
Analysis
I think where the problem is.
Class: org.apache.camel.http.common.DefaultHttpBindingComponent.java
Explanation: The POST/GET parameters are always added as Headers in camel
There is no any flag that can avoid that mapping.
Proposed solution
Use the mapHttpMessageFormUrlEncodedBody to control where the GET/POST parameters should be mapped to headers
Kind regards
Kind regards