)]}'
{"specs/ocata/approved/glance/lite-specs.rst":[{"author":{"_account_id":22448,"name":"Alexander Bashmakov","email":"abashmak@yahoo.com","username":"abashmak"},"change_message_id":"c837441ace33ff07179c27cab35452ba1c289079","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":":problem: When a HTTP request for a partial image download is sent, currently"},{"line_number":41,"context_line":"          the ``Content-Range`` header is parsed to get the byte range from the"},{"line_number":42,"context_line":"          request. This requires users to send byte range requests in the"},{"line_number":43,"context_line":"          format of a typical HTTP range response."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":":solution: Parse the ``Range`` header from HTTP requests and send a"},{"line_number":46,"context_line":"           ``Content-Range`` entity header with the server response."}],"source_content_type":"text/x-rst","patch_set":1,"id":"5a8bc5a2_7874ce9b","line":43,"range":{"start_line":42,"start_character":19,"end_line":43,"end_character":50},"updated":"2016-09-22 21:52:18.000000000","message":"Per W3C specification, the desired byte range should be specified in HTTP requests using the ``Range`` header rather than the ``Content-Range`` header. The latter is reserved for responses to such requests. Current implementation requires users to send requests that are not compatible with the spec.","commit_id":"91469410ee9baa9d622ec3f1dd5f32c5d9cbc750"},{"author":{"_account_id":21722,"name":"Dharini Chandrasekar","email":"dharini.chandrasekar@intel.com","username":"dharinic"},"change_message_id":"87045fddd65f08ff2fbe212b21de472a15eb295d","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":":problem: When a HTTP request for a partial image download is sent, currently"},{"line_number":41,"context_line":"          the ``Content-Range`` header is parsed to get the byte range from the"},{"line_number":42,"context_line":"          request. This requires users to send byte range requests in the"},{"line_number":43,"context_line":"          format of a typical HTTP range response."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":":solution: Parse the ``Range`` header from HTTP requests and send a"},{"line_number":46,"context_line":"           ``Content-Range`` entity header with the server response."}],"source_content_type":"text/x-rst","patch_set":1,"id":"5a8bc5a2_4e7588f7","line":43,"range":{"start_line":42,"start_character":19,"end_line":43,"end_character":50},"in_reply_to":"5a8bc5a2_7874ce9b","updated":"2016-09-22 23:13:31.000000000","message":"Done","commit_id":"91469410ee9baa9d622ec3f1dd5f32c5d9cbc750"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"21b7e57865cffec4d8a795f9a8762e773fa469bb","unresolved":false,"context_lines":[{"line_number":43,"context_line":"          should be specified in HTTP requests using the ``Range`` header"},{"line_number":44,"context_line":"          rather than the ``Content-Range`` header. The latter is reserved for"},{"line_number":45,"context_line":"          responses to such requests. Current implementation requires users to"},{"line_number":46,"context_line":"          send requests that are not compatible with this specification."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":":solution: Parse the ``Range`` header from HTTP requests and send a"},{"line_number":49,"context_line":"           ``Content-Range`` entity header with the server response."}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa6399be_f95e2144","line":46,"updated":"2016-10-11 20:53:58.000000000","message":"I think you need to combine some info from the commit message into the problem statement.  There are 2 things going on:\n\n(1) We currently accept \u0027Content-range\u0027 as part of the request, whereas we should be accepting (requiring) \u0027Range\u0027.\n\n(2) The values defined for \u0027Content-range\u0027 and \u0027Range\u0027 are different (Range has the bytes\u003d format, Content-range has the bytes / format)\n\nIt\u0027s important to mention this because the problem isn\u0027t simply that the header is misnamed, there\u0027s a value format problem, too.  That means that supporting the deprecated format is nontrivial.\n\nQuestion: how picky are we about the value format now (in the current implementation)?","commit_id":"84dcb8217d462750b737ecac73f8edb1f1b3e52a"},{"author":{"_account_id":21722,"name":"Dharini Chandrasekar","email":"dharini.chandrasekar@intel.com","username":"dharinic"},"change_message_id":"d82f0450a1d3871d8e073604cba425bdf19b0011","unresolved":false,"context_lines":[{"line_number":43,"context_line":"          should be specified in HTTP requests using the ``Range`` header"},{"line_number":44,"context_line":"          rather than the ``Content-Range`` header. The latter is reserved for"},{"line_number":45,"context_line":"          responses to such requests. Current implementation requires users to"},{"line_number":46,"context_line":"          send requests that are not compatible with this specification."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":":solution: Parse the ``Range`` header from HTTP requests and send a"},{"line_number":49,"context_line":"           ``Content-Range`` entity header with the server response."}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa6399be_4b8e5079","line":46,"in_reply_to":"fa6399be_f95e2144","updated":"2016-10-11 21:00:58.000000000","message":"Brian, Yes. The value format currently accepted with Content-Range is different. Also, as I have mentioned in the ``imapcts`` section (lines 54-57), the Range\u0027s parser does not have a length attribute to perform automatic checks like the current implementation did with ``Content-Range``.\n(pl refer comments on https://review.openstack.org/#/c/367528/6/glance/common/wsgi.py)\nSo while we deprecate and retain the functionality of content-range, we also would be making considerable additions to incorporate ``Range``.\n\nWill update this lite-spec making these more explicit and resubmit as suggested.","commit_id":"84dcb8217d462750b737ecac73f8edb1f1b3e52a"}]}
