)]}'
{"swift/common/middleware/versioned_writes.py":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"70b5ef7de55f81807ad62801c8365facaa1e107e","unresolved":false,"context_lines":[{"line_number":225,"context_line":"            # does a GET on source object. So, we don\u0027t have to explicity"},{"line_number":226,"context_line":"            # set it in request headers here."},{"line_number":227,"context_line":"            if is_slo_manifest:"},{"line_number":228,"context_line":"                req.environ[\u0027QUERY_STRING\u0027] \u003d \u0027multipart-manifest\u003dget\u0027"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"            copy_req \u003d make_pre_authed_request("},{"line_number":231,"context_line":"                req.environ, path\u003dreq.path_info,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_8498651d","line":228,"updated":"2016-01-25 14:56:40.000000000","message":"nit: inserting this here decouples the comment above from what it directly relates to","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"},{"author":{"_account_id":12279,"name":"Janie Richling","email":"jrichli@us.ibm.com","username":"jrichli"},"change_message_id":"846783af83a1fee2e333074bb59ed4369a045315","unresolved":false,"context_lines":[{"line_number":225,"context_line":"            # does a GET on source object. So, we don\u0027t have to explicity"},{"line_number":226,"context_line":"            # set it in request headers here."},{"line_number":227,"context_line":"            if is_slo_manifest:"},{"line_number":228,"context_line":"                req.environ[\u0027QUERY_STRING\u0027] \u003d \u0027multipart-manifest\u003dget\u0027"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"            copy_req \u003d make_pre_authed_request("},{"line_number":231,"context_line":"                req.environ, path\u003dreq.path_info,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_0f59e98d","line":228,"in_reply_to":"9a68dd71_8498651d","updated":"2016-01-25 21:09:41.000000000","message":"Done","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"70b5ef7de55f81807ad62801c8365facaa1e107e","unresolved":false,"context_lines":[{"line_number":290,"context_line":""},{"line_number":291,"context_line":"            # perform a HEAD request to check if SLO manifest."},{"line_number":292,"context_line":"            # It would be preferred to have a way to determine this"},{"line_number":293,"context_line":"            # without a head or get_object_info call."},{"line_number":294,"context_line":"            head_headers \u003d {\u0027X-Newest\u0027: \u0027True\u0027,"},{"line_number":295,"context_line":"                            \u0027x-auth-token\u0027: req.headers.get(\u0027x-auth-token\u0027)}"},{"line_number":296,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_44810dfa","line":293,"updated":"2016-01-25 14:56:40.000000000","message":"Do we need to do this at all, vs. just appending always multipart-manifest\u003dget to the uri?\n\n(I tried that and no func tests failed... )\n\nOR, add \u0027swift.versioning_copy\u0027 to req.environ and then modify swift/common/middleware/slo.py:760 to consider that case the same as a post_as_copy","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"},{"author":{"_account_id":12279,"name":"Janie Richling","email":"jrichli@us.ibm.com","username":"jrichli"},"change_message_id":"846783af83a1fee2e333074bb59ed4369a045315","unresolved":false,"context_lines":[{"line_number":290,"context_line":""},{"line_number":291,"context_line":"            # perform a HEAD request to check if SLO manifest."},{"line_number":292,"context_line":"            # It would be preferred to have a way to determine this"},{"line_number":293,"context_line":"            # without a head or get_object_info call."},{"line_number":294,"context_line":"            head_headers \u003d {\u0027X-Newest\u0027: \u0027True\u0027,"},{"line_number":295,"context_line":"                            \u0027x-auth-token\u0027: req.headers.get(\u0027x-auth-token\u0027)}"},{"line_number":296,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_90a64cac","line":293,"in_reply_to":"9a68dd71_44810dfa","updated":"2016-01-25 21:09:41.000000000","message":"Adding the environ flag worked - only, I had to process the flag in the obj controller as opposed to the slo copy hook.  For some reason, the slo copy hook is not called for the slo versioning test.  (am i missing something?)","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"70b5ef7de55f81807ad62801c8365facaa1e107e","unresolved":false,"context_lines":[{"line_number":304,"context_line":""},{"line_number":305,"context_line":"            if is_success(hresp.status_int):"},{"line_number":306,"context_line":"                if \u0027X-Static-Large-Object\u0027 in hresp.headers:"},{"line_number":307,"context_line":"                    req.environ[\u0027QUERY_STRING\u0027] \u003d \u0027multipart-manifest\u003dget\u0027"},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"            copy_req \u003d make_pre_authed_request("},{"line_number":310,"context_line":"                req.environ, path\u003dcopy_path,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_04ceb562","line":307,"updated":"2016-01-25 14:56:40.000000000","message":"for the sake of my brain keeping track of all the state of all the different request objects, could we modify copy_req.environ after copying req.environ (below) rather than modifying req.environ?","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"},{"author":{"_account_id":12279,"name":"Janie Richling","email":"jrichli@us.ibm.com","username":"jrichli"},"change_message_id":"846783af83a1fee2e333074bb59ed4369a045315","unresolved":false,"context_lines":[{"line_number":304,"context_line":""},{"line_number":305,"context_line":"            if is_success(hresp.status_int):"},{"line_number":306,"context_line":"                if \u0027X-Static-Large-Object\u0027 in hresp.headers:"},{"line_number":307,"context_line":"                    req.environ[\u0027QUERY_STRING\u0027] \u003d \u0027multipart-manifest\u003dget\u0027"},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"            copy_req \u003d make_pre_authed_request("},{"line_number":310,"context_line":"                req.environ, path\u003dcopy_path,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_50ac548b","line":307,"in_reply_to":"9a68dd71_04ceb562","updated":"2016-01-25 21:09:41.000000000","message":"Done","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"390526cfd1889df0817e4ffe616820ad253f9cb3","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                \u0027x-auth-token\u0027: req.headers.get(\u0027x-auth-token\u0027)}"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"            if is_slo_manifest:"},{"line_number":225,"context_line":"                req.environ[\u0027QUERY_STRING\u0027] \u003d \u0027multipart-manifest\u003dget\u0027"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"            # COPY implementation sets X-Newest to True when it internally"},{"line_number":228,"context_line":"            # does a GET on source object. So, we don\u0027t have to explicity"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a5de9d1_3a0abbd3","line":225,"updated":"2016-01-27 15:06:26.000000000","message":"since slo copy_hook is not called for the copy_req, I don\u0027t see any use for adding this query string","commit_id":"8caf6dc12a1024fce89c1be857c4338867f5c019"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"390526cfd1889df0817e4ffe616820ad253f9cb3","unresolved":false,"context_lines":[{"line_number":227,"context_line":"            # COPY implementation sets X-Newest to True when it internally"},{"line_number":228,"context_line":"            # does a GET on source object. So, we don\u0027t have to explicity"},{"line_number":229,"context_line":"            # set it in request headers here."},{"line_number":230,"context_line":"            copy_req \u003d make_pre_authed_request("},{"line_number":231,"context_line":"                req.environ, path\u003dreq.path_info,"},{"line_number":232,"context_line":"                headers\u003dcopy_headers, method\u003d\u0027COPY\u0027, swift_source\u003d\u0027VW\u0027)"},{"line_number":233,"context_line":"            copy_resp \u003d copy_req.get_response(self.app)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a5de9d1_3a3cfb92","line":230,"updated":"2016-01-27 15:06:26.000000000","message":"this copy_req will not have the SLO copy_hook in its environ, it does not get copied across from req.environ","commit_id":"8caf6dc12a1024fce89c1be857c4338867f5c019"}],"swift/proxy/controllers/obj.py":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"390526cfd1889df0817e4ffe616820ad253f9cb3","unresolved":false,"context_lines":[{"line_number":511,"context_line":"        if \u0027X-Static-Large-Object\u0027 in source_resp.headers and \\"},{"line_number":512,"context_line":"                (req.params.get(\u0027multipart-manifest\u0027) \u003d\u003d \u0027get\u0027 or"},{"line_number":513,"context_line":"                 \u0027swift.post_as_copy\u0027 in req.environ or"},{"line_number":514,"context_line":"                 \u0027swift.versioning_copy\u0027 in req.environ):"},{"line_number":515,"context_line":"            sink_req.headers[\u0027X-Static-Large-Object\u0027] \u003d \\"},{"line_number":516,"context_line":"                source_resp.headers[\u0027X-Static-Large-Object\u0027]"},{"line_number":517,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"7a5de9d1_1ab6dfdc","line":514,"updated":"2016-01-27 15:06:26.000000000","message":"yeah this works.\n\nbut my patch [1] fixes copying all the headers and removes the need for this special case\n\n[1] https://review.openstack.org/272724","commit_id":"8caf6dc12a1024fce89c1be857c4338867f5c019"}],"test/functional/tests.py":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"70b5ef7de55f81807ad62801c8365facaa1e107e","unresolved":false,"context_lines":[{"line_number":3650,"context_line":"                             (\u0027b\u0027, 1024 * 1024),"},{"line_number":3651,"context_line":"                             (\u0027c\u0027, 1024 * 1024),"},{"line_number":3652,"context_line":"                             (\u0027d\u0027, 1024 * 1024),"},{"line_number":3653,"context_line":"                             (\u0027e\u0027, 1)):"},{"line_number":3654,"context_line":"            seg_name \u003d letter"},{"line_number":3655,"context_line":"            file_item \u003d self.segments_container.file(seg_name)"},{"line_number":3656,"context_line":"            file_item.write(letter * size)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_89639e41","line":3653,"updated":"2016-01-25 14:56:40.000000000","message":"c, d and e aren\u0027t actually used - mea culpa!","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"},{"author":{"_account_id":12279,"name":"Janie Richling","email":"jrichli@us.ibm.com","username":"jrichli"},"change_message_id":"846783af83a1fee2e333074bb59ed4369a045315","unresolved":false,"context_lines":[{"line_number":3650,"context_line":"                             (\u0027b\u0027, 1024 * 1024),"},{"line_number":3651,"context_line":"                             (\u0027c\u0027, 1024 * 1024),"},{"line_number":3652,"context_line":"                             (\u0027d\u0027, 1024 * 1024),"},{"line_number":3653,"context_line":"                             (\u0027e\u0027, 1)):"},{"line_number":3654,"context_line":"            seg_name \u003d letter"},{"line_number":3655,"context_line":"            file_item \u003d self.segments_container.file(seg_name)"},{"line_number":3656,"context_line":"            file_item.write(letter * size)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_30c200ea","line":3653,"in_reply_to":"9a68dd71_89639e41","updated":"2016-01-25 21:09:41.000000000","message":"Done","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"70b5ef7de55f81807ad62801c8365facaa1e107e","unresolved":false,"context_lines":[{"line_number":3670,"context_line":"    def _assert_is_manifest(self, file_item, seg_name):"},{"line_number":3671,"context_line":"        manifest_body \u003d file_item.read(parms\u003d{\u0027multipart-manifest\u0027: \u0027get\u0027})"},{"line_number":3672,"context_line":"        self.assertEqual(\u0027application/json; charset\u003dutf-8\u0027,"},{"line_number":3673,"context_line":"                         file_item.content_type)"},{"line_number":3674,"context_line":"        try:"},{"line_number":3675,"context_line":"            manifest \u003d json.loads(manifest_body)"},{"line_number":3676,"context_line":"        except ValueError:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_44f26d07","line":3673,"updated":"2016-01-25 14:56:40.000000000","message":"add a check for x-static-large-object header:\n\n          resp_headers \u003d dict(file_item.conn.response.getheaders())\n        self.assertIn(\u0027x-static-large-object\u0027, resp_headers)\n\nthis is implicitly covered by the _assert_is_object checks that the object can be read as a large object, but good to explicitly check here too.","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"},{"author":{"_account_id":12279,"name":"Janie Richling","email":"jrichli@us.ibm.com","username":"jrichli"},"change_message_id":"846783af83a1fee2e333074bb59ed4369a045315","unresolved":false,"context_lines":[{"line_number":3670,"context_line":"    def _assert_is_manifest(self, file_item, seg_name):"},{"line_number":3671,"context_line":"        manifest_body \u003d file_item.read(parms\u003d{\u0027multipart-manifest\u0027: \u0027get\u0027})"},{"line_number":3672,"context_line":"        self.assertEqual(\u0027application/json; charset\u003dutf-8\u0027,"},{"line_number":3673,"context_line":"                         file_item.content_type)"},{"line_number":3674,"context_line":"        try:"},{"line_number":3675,"context_line":"            manifest \u003d json.loads(manifest_body)"},{"line_number":3676,"context_line":"        except ValueError:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_10bfbc61","line":3673,"in_reply_to":"9a68dd71_44f26d07","updated":"2016-01-25 21:09:41.000000000","message":"Done","commit_id":"224ea116b9c379c5f777e38179ac99ec59b9fdea"}]}
