Moouna opened a new issue, #18742:
URL: https://github.com/apache/dolphinscheduler/issues/18742

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   When testing an HTTP task, parameters added under HTTP Parameters (type 
PARAMETER) are not sent when the request method is POST or PUT.
   
   For example, with URL /capture and a separate parameter jobId=42 (type 
PARAMETER), the server receives `POST /capture` — the jobId parameter is 
missing. GET sends it correctly (DELETE was fixed in #18696). Adding jobId=42 
directly to the URL also works with POST/PUT.
   
   ### What you expected to happen
   
   Parameters of type PARAMETER should be appended to the request url (with 
${...} placeholder substitution) for every request method, the same way GET and 
DELETE already work.
   
   ### How to reproduce
   
   1. Create an HTTP task with request method POST (or PUT).
   2. Add a parameter jobId=42 with type Parameter under HTTP Parameters.
   3. Run the task against a server that echoes the received url (e.g. 
httpbin.org/post).
   4. Observe that the query string does not contain jobId=42.
   
   Switching the request method to GET sends it correctly.
   
   ### Anything else
   
   I have prepared a fix so that parameters of type PARAMETER work consistently 
for GET/POST/PUT/DELETE, and will open a pull request against dev after this 
issue is created.
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to