You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is what will then read the body to find an populate the parameters - meaning the reading of the body later will fail (as it is read the available length of it will be zero)
Jenkins and plugins versions report
QueryParameter is only supposed to look at the HTTP query but looks also in the RequestBody making it unusable for others
What Operating System are you using (both controller, and any agents involved in the problem)?
windows java11
Reproduction steps
call the endpoint with curl
curl theEddpoint --data blahblahblah
Expected Results
blahblahblah
is printedActual Results
the string is enmpty
Anything else?
because the query parameter is optional it is not in the URL.
QueryParameter
callsrequest.getParameter(name)
which is eventuallyServletRequest.getParameter(String)
This code is what will then read the body to find an populate the parameters - meaning the reading of the body later will fail (as it is read the available length of it will be zero)
e.g. for Jetty for example ->
https://github.com/eclipse/jetty.project/blob/bff5b3eb8f5547afd8883029555dd46d06ed7a77/jetty-server/src/main/java/org/eclipse/jetty/server/Request.java#L1046-L1050
This is in violation of the contract of the
QueryParameter
The text was updated successfully, but these errors were encountered: