yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #63022
[Bug 1677391] Re: Glance does not accept 'Range' in requests.
Reviewed: https://review.openstack.org/441501
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=423f3401741a64f0ead66bcb8cb0cd8cafb02cf8
Submitter: Jenkins
Branch: master
commit 423f3401741a64f0ead66bcb8cb0cd8cafb02cf8
Author: Dharini Chandrasekar <dharini.chandrasekar@xxxxxxxxx>
Date: Fri Mar 3 22:38:34 2017 +0000
Accept Range requests and set appropriate response
Currently glance v2 API incorrectly accepts ‘Content-Range’ header
for random image access and does not set response headers.
As per rfc7233, ‘Range’ requests should be accepted and ‘Content-Range’
must be returned in the response headers.
This patch enables Glance v2 API to accept the more appropriate ‘Range’
requests and sets ‘Content-Range’ response header.
For backward compatibility with pre-Pike Glance clients, the incorrect
'Content-Range' header will be accepted silently in perpetuity.
Thus this patch contains tests for 'Content-Range' in requests to
prevent regressions.
DocImpact
Implements lite-spec I5bdadde682a0c50836bd95e2a6651d6e7e18f172
Closes-Bug: #1677391
Co-Authored-By: Hemanth Makkapati <hemanth.makkapati@xxxxxxxxxxxxx>
Change-Id: Ib7ebc792c32995751744be3f36cbc9a0c1eead2a
** Changed in: glance
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1677391
Title:
Glance does not accept 'Range' in requests.
Status in Glance:
Fix Released
Bug description:
Glance currently supports partial download requests if provided with a Content-Range header in the GET request. [1]
However, Glance needs to add support for 'Range' requests and serve partial image download requests accordingly as per rfc7233. [2]
[1] https://github.com/openstack/glance/blob/master/glance/api/v2/image_data.py#L287-L336
[2] https://tools.ietf.org/html/rfc7233#section-3.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1677391/+subscriptions
References