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
When a request is made to Conjur with an empty body but the header Content-Type: application/json the server will attempt to parse the request body and throw an uncaught error because it is invalid JSON.
Steps to Reproduce
This is known to happen on the /host_factory_tokens endpoint using the DELETE method
Create a request with an empty body and the Content-Type: application/json header
Send the request to the server
Expected Results
The server should handle the error nicely and return a 400 to the user.
Actual Results (including error logs, if applicable)
A 500 error (and an HTML page) is returned
Reproducible
Always
Sometimes
Non-Reproducible
Environment setup
Running in a docker-compose environment from the cyberark/conjur:1.9 image.
The text was updated successfully, but these errors were encountered:
@alexkalish To my knowledge neither the Ruby or Go clients create requests like this (also haven't seen it in the Ruby CLI). The reason I came across it was because the generated clients often do.
Summary
When a request is made to Conjur with an empty body but the header
Content-Type: application/json
the server will attempt to parse the request body and throw an uncaught error because it is invalid JSON.Steps to Reproduce
This is known to happen on the
/host_factory_tokens
endpoint using theDELETE
methodContent-Type: application/json
headerExpected Results
The server should handle the error nicely and return a 400 to the user.
Actual Results (including error logs, if applicable)
A 500 error (and an HTML page) is returned
Reproducible
Environment setup
Running in a docker-compose environment from the cyberark/conjur:1.9 image.
The text was updated successfully, but these errors were encountered: