Does the Red Hat Ceph Storage Manager API handle `chunked` transfer encoding requests?
Issue
-
Reaching the Ceph Manager API endpoint with the
chunkedtransfer encoding set fails with the error411: Lenght required:curl -X POST "https://$MGR/api/auth" -H "accept: application/vnd.ceph.api.v1.0+json" -H "Content-Type: application/json" -d "{"username":"admin","password":"mysecretpassword"}" -H "Transfer-Encoding: chunked" {"status": "411 Length Required", "detail": "Client must specify Content-Length", "request_id": "9f093c4a-73e2-4b81-8ebf-284424fbbeeb"} -
The same request works as expected when the length is set:
curl -X POST "https://$MGR/api/auth" -H "accept: application/vnd.ceph.api.v1.0+json" -H "Content-Type: application/json" -d '{"username":"admin","password":"mysecretpassword"}' -H "Content-Length: 50" -
Why is this so? Does the Ceph Manager API support this transfer encoding?
Environment
Red Hat Ceph Storage, all versions.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.