yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #33200
[Bug 1459550] [NEW] Glance cache ignores range request headers
Public bug reported:
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
** Affects: glance
Importance: Undecided
Status: New
** Description changed:
- When attempting to download a part[1] of an image, glance always
- returns the entire image. Neither the 'Range' nor the 'Content-Range'
- headers are not accounted for.
+ 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
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1459550
Title:
Glance cache ignores range request headers
Status in OpenStack Image Registry and Delivery Service (Glance):
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1459550/+subscriptions
Follow ups
References