)]}'
{"swift/common/middleware/versioned_writes.py":[{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"0310089d5d951825555963e35a59bc260687b547","unresolved":false,"context_lines":[{"line_number":383,"context_line":"        return source_resp"},{"line_number":384,"context_line":""},{"line_number":385,"context_line":"    def _put_versioned_obj(self, req, put_path_info, source_resp):"},{"line_number":386,"context_line":"        # Create a new Request object to PUT to the versions container, copying"},{"line_number":387,"context_line":"        # all headers from the source object apart from x-timestamp."},{"line_number":388,"context_line":"        put_req \u003d make_pre_authed_request("},{"line_number":389,"context_line":"            req.environ, path\u003dwsgi_quote(put_path_info), method\u003d\u0027PUT\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5faad753_42169757","line":386,"range":{"start_line":386,"start_character":38,"end_line":386,"end_character":70},"updated":"2019-09-13 20:59:00.000000000","message":"Off-topic: Stop lying, comment! This gets called from _restore_data(), too, where we\u0027re writing to the primary container!","commit_id":"46cf7a15b1906e523cba5ccc4e0c591835d44896"},{"author":{"_account_id":30970,"name":"Nguyen Quoc Viet","email":"nguyenqviet98@gmail.com","username":"bluv"},"change_message_id":"5b4274c1852e5c40fc8e5281530eca1a14964a6d","unresolved":false,"context_lines":[{"line_number":383,"context_line":"        return source_resp"},{"line_number":384,"context_line":""},{"line_number":385,"context_line":"    def _put_versioned_obj(self, req, put_path_info, source_resp):"},{"line_number":386,"context_line":"        # Create a new Request object to PUT to the versions container, copying"},{"line_number":387,"context_line":"        # all headers from the source object apart from x-timestamp."},{"line_number":388,"context_line":"        put_req \u003d make_pre_authed_request("},{"line_number":389,"context_line":"            req.environ, path\u003dwsgi_quote(put_path_info), method\u003d\u0027PUT\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5faad753_07c3c839","line":386,"range":{"start_line":386,"start_character":38,"end_line":386,"end_character":70},"in_reply_to":"5faad753_42169757","updated":"2019-09-15 16:14:24.000000000","message":"Done","commit_id":"46cf7a15b1906e523cba5ccc4e0c591835d44896"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"0310089d5d951825555963e35a59bc260687b547","unresolved":false,"context_lines":[{"line_number":389,"context_line":"            req.environ, path\u003dwsgi_quote(put_path_info), method\u003d\u0027PUT\u0027,"},{"line_number":390,"context_line":"            swift_source\u003d\u0027VW\u0027)"},{"line_number":391,"context_line":"        copy_header_subset(source_resp, put_req,"},{"line_number":392,"context_line":"                           lambda k: k.lower() !\u003d \u0027x-timestamp\u0027)"},{"line_number":393,"context_line":"        put_req.environ[\u0027wsgi.input\u0027] \u003d FileLikeIter(source_resp.app_iter)"},{"line_number":394,"context_line":"        put_resp \u003d put_req.get_response(self.app)"},{"line_number":395,"context_line":"        close_if_possible(source_resp.app_iter)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5faad753_82524f3a","line":392,"updated":"2019-09-13 20:59:00.000000000","message":"We already have some header manipulations here; I wonder if it\u0027d make sense to do something like\n\n        slo_size \u003d put_req.headers.get(\u0027X-Object-Sysmeta-Slo-Size\u0027)\n        if slo_size:\n            put_req.headers[\u0027Content-Type\u0027] +\u003d \u0027; swift_bytes\u003d\u0027 + slo_size\n            put_req.environ[\u0027swift.content_type_overridden\u0027] \u003d True\n\nhere?","commit_id":"46cf7a15b1906e523cba5ccc4e0c591835d44896"},{"author":{"_account_id":30970,"name":"Nguyen Quoc Viet","email":"nguyenqviet98@gmail.com","username":"bluv"},"change_message_id":"5b4274c1852e5c40fc8e5281530eca1a14964a6d","unresolved":false,"context_lines":[{"line_number":389,"context_line":"            req.environ, path\u003dwsgi_quote(put_path_info), method\u003d\u0027PUT\u0027,"},{"line_number":390,"context_line":"            swift_source\u003d\u0027VW\u0027)"},{"line_number":391,"context_line":"        copy_header_subset(source_resp, put_req,"},{"line_number":392,"context_line":"                           lambda k: k.lower() !\u003d \u0027x-timestamp\u0027)"},{"line_number":393,"context_line":"        put_req.environ[\u0027wsgi.input\u0027] \u003d FileLikeIter(source_resp.app_iter)"},{"line_number":394,"context_line":"        put_resp \u003d put_req.get_response(self.app)"},{"line_number":395,"context_line":"        close_if_possible(source_resp.app_iter)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5faad753_70e7cfad","line":392,"in_reply_to":"5faad753_82524f3a","updated":"2019-09-15 16:14:24.000000000","message":"Done","commit_id":"46cf7a15b1906e523cba5ccc4e0c591835d44896"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"0310089d5d951825555963e35a59bc260687b547","unresolved":false,"context_lines":[{"line_number":419,"context_line":"            Timestamp(ts).internal))"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"    def _copy_current(self, req, versions_cont, api_version, account_name,"},{"line_number":422,"context_line":"                      object_name):"},{"line_number":423,"context_line":"        # validate the write access to the versioned container before"},{"line_number":424,"context_line":"        # making any backend requests"},{"line_number":425,"context_line":"        if \u0027swift.authorize\u0027 in req.environ:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5faad753_a519957a","line":422,"updated":"2019-09-13 20:59:00.000000000","message":"I worry that just changing things here will fix it when we copy from primary to archive, but not when we restore...","commit_id":"46cf7a15b1906e523cba5ccc4e0c591835d44896"},{"author":{"_account_id":30970,"name":"Nguyen Quoc Viet","email":"nguyenqviet98@gmail.com","username":"bluv"},"change_message_id":"5b4274c1852e5c40fc8e5281530eca1a14964a6d","unresolved":false,"context_lines":[{"line_number":419,"context_line":"            Timestamp(ts).internal))"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"    def _copy_current(self, req, versions_cont, api_version, account_name,"},{"line_number":422,"context_line":"                      object_name):"},{"line_number":423,"context_line":"        # validate the write access to the versioned container before"},{"line_number":424,"context_line":"        # making any backend requests"},{"line_number":425,"context_line":"        if \u0027swift.authorize\u0027 in req.environ:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5faad753_e731cc5b","line":422,"in_reply_to":"5faad753_a519957a","updated":"2019-09-15 16:14:24.000000000","message":"Done","commit_id":"46cf7a15b1906e523cba5ccc4e0c591835d44896"}]}
