Does the Red Hat Ceph Storage Manager API handle `chunked` transfer encoding requests?

Solution Verified - Updated -

Issue

  • Reaching the Ceph Manager API endpoint with the chunked transfer encoding set fails with the error 411: 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content