Glance Content-Range request returns incorrect Content-Length
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Cyril Roelandt |
Bug Description
When using the Glance API's Content-Range support to partially download an image, the server sets a Content-Length header equal to the size of the full image, rather than the size of the chunk specified by the Content-Range. This causes clients to wait indefinitely for the server.
Version-Release number of selected component (if applicable):
It at least affects Glance 11.0.1
Steps to Reproduce:
1. Make an authenticated GET request to /v2/images/
the Content-Range header set to some value smaller than the entire length
of the image.
2. Wait
Actual results:
Server returns a Content-Length header equal to the length of the whole image but only transmitting the requested bytes. The client waits indefinitely for the server to continue sending.
Expected results:
Server returns a Content-Length header equal to the number of bytes in the chunk, so that the client can know to disconnect.
Changed in glance: | |
assignee: | nobody → Cyril Roelandt (cyril-roelandt) |
Hi,
thanks for reporting this bug.
can you please specify which stores are configured for your backend storage?
thanks.