Glance cache ignores range request headers

Bug #1459550 reported by Björn Schuberg
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Dharini Chandrasekar

Bug Description

When attempting to download a part[1] of an image, the glance cache always returns the entire image. Neither the 'Range' nor the 'Content-Range' headers are not accounted for.

Both requests below aims to get the first 50 bytes of an image, but instead the complete image is returned with a 200 OK status.
curl ${glance_host}/v2/images/:image_id/file -H 'Range: bytes=0-49'
curl ${glance_host}/v2/images/:image_id/file -H 'Content-Range: bytes 0-49/*'

This will become more of an issue once #1399851 is solved.

Produced on a devstack install, at commit bcc772 of glance.

[1]: https://tools.ietf.org/html/rfc7233#section-4

description: updated
Changed in glance:
assignee: nobody → Itisha Dewan (ishadewan07)
Changed in glance:
assignee: Itisha Dewan (ishadewan07) → nobody
Changed in glance:
assignee: nobody → Dharini Chandrasekar (dharini-chandrasekar)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.