)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"85f3b63c94a2fad09fc181603c4585dbea04069f","unresolved":true,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"object-server: return overwritten object\u0027s sysmeta in PUT response"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A PUT request may now carry a `X-Backend-Return-Object-Prev-Sysmeta`"},{"line_number":10,"context_line":"header containing a list of object sysmeta names. The 201 response"},{"line_number":11,"context_line":"includes a header for each listed name present in the overwritten"},{"line_number":12,"context_line":"object\u0027s metadata, renamed from `X-Object-Sysmeta-\u003ckey\u003e` to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"d7e81e3a_28dfa638","line":9,"range":{"start_line":9,"start_character":48,"end_line":9,"end_character":55},"updated":"2026-11-19 14:42:37.000000000","message":"I might suggest reordering and avoiding the abbreviation i.e.\n\n`X-Backend-Return-Previous-Object-Sysmeta`\n\nSince \u0027-Object-Sysmeta-\" is an existing naming idiom/\u0027tuple\u0027.\n\n\u0027Object-\u0027 is possiby superfluous ??? but I guess it makes pattern match explicitly","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"},{"author":{"_account_id":38767,"name":"Wael Halbawi","display_name":"Wael Halbawi","email":"whalbawi@nvidia.com","username":"whalbawi"},"change_message_id":"4832cbbc3a83f6bc9a180926649bed027bc25c8a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"object-server: return overwritten object\u0027s sysmeta in PUT response"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A PUT request may now carry a `X-Backend-Return-Object-Prev-Sysmeta`"},{"line_number":10,"context_line":"header containing a list of object sysmeta names. The 201 response"},{"line_number":11,"context_line":"includes a header for each listed name present in the overwritten"},{"line_number":12,"context_line":"object\u0027s metadata, renamed from `X-Object-Sysmeta-\u003ckey\u003e` to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"68caddab_3b4d5bda","line":9,"range":{"start_line":9,"start_character":48,"end_line":9,"end_character":55},"in_reply_to":"d7e81e3a_28dfa638","updated":"2026-11-24 04:43:49.000000000","message":"I\u0027ve implemented the reordering, and expanded `Prev`. I switched back and forth between both orders numerous times but then settled on the one in this patch as that somewhat mimics the `transient` sysmeta. Having said that, I\u0027m glad you\u0027re tipping things in one direction. I think this approach also facilitate extending the machinery to other metadata too.","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"85f3b63c94a2fad09fc181603c4585dbea04069f","unresolved":true,"context_lines":[{"line_number":9,"context_line":"A PUT request may now carry a `X-Backend-Return-Object-Prev-Sysmeta`"},{"line_number":10,"context_line":"header containing a list of object sysmeta names. The 201 response"},{"line_number":11,"context_line":"includes a header for each listed name present in the overwritten"},{"line_number":12,"context_line":"object\u0027s metadata, renamed from `X-Object-Sysmeta-\u003ckey\u003e` to"},{"line_number":13,"context_line":"`X-Backend-Object-Prev-Sysmeta-\u003ckey\u003e`. Names that do not identify object"},{"line_number":14,"context_line":"sysmeta are ignored."},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3195c3ac_cf56dc0f","line":12,"range":{"start_line":12,"start_character":19,"end_line":12,"end_character":27},"updated":"2026-11-19 14:42:37.000000000","message":"I\u0027m not sure we need to rename these response headers. The fact that they need to be requested by X-Backend-Return-Object-Prev-Sysmeta implies that there isn\u0027t otherwise an x-object-sysmeta header in the response.","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"},{"author":{"_account_id":38767,"name":"Wael Halbawi","display_name":"Wael Halbawi","email":"whalbawi@nvidia.com","username":"whalbawi"},"change_message_id":"4832cbbc3a83f6bc9a180926649bed027bc25c8a","unresolved":true,"context_lines":[{"line_number":9,"context_line":"A PUT request may now carry a `X-Backend-Return-Object-Prev-Sysmeta`"},{"line_number":10,"context_line":"header containing a list of object sysmeta names. The 201 response"},{"line_number":11,"context_line":"includes a header for each listed name present in the overwritten"},{"line_number":12,"context_line":"object\u0027s metadata, renamed from `X-Object-Sysmeta-\u003ckey\u003e` to"},{"line_number":13,"context_line":"`X-Backend-Object-Prev-Sysmeta-\u003ckey\u003e`. Names that do not identify object"},{"line_number":14,"context_line":"sysmeta are ignored."},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"f6409dba_40637991","line":12,"range":{"start_line":12,"start_character":19,"end_line":12,"end_character":27},"in_reply_to":"3195c3ac_cf56dc0f","updated":"2026-11-24 04:43:49.000000000","message":"My thinking here is the follow:\nFor a given request, a `X-Object-Sysmeta-\u003ckey\u003e` header is associated with the current object. So, I want to keep the door open for a possibility where we would need the server to return the written object\u0027s sysmeta.","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"85f3b63c94a2fad09fc181603c4585dbea04069f","unresolved":true,"context_lines":[{"line_number":11,"context_line":"includes a header for each listed name present in the overwritten"},{"line_number":12,"context_line":"object\u0027s metadata, renamed from `X-Object-Sysmeta-\u003ckey\u003e` to"},{"line_number":13,"context_line":"`X-Backend-Object-Prev-Sysmeta-\u003ckey\u003e`. Names that do not identify object"},{"line_number":14,"context_line":"sysmeta are ignored."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The behavior is opt-in so that:"},{"line_number":17,"context_line":"- A PUT request without the `X-Backend-Return-Object-Prev-Sysmeta`"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"fe601487_393d45dd","line":14,"updated":"2026-11-19 14:42:37.000000000","message":"We should think about whether we might ever want non-sysmeta metadata to be returned (like x-static-large-object for example).\n\nModern middleware should be using the sysmeta namespace, so this should be ok, and for our s3api mpu use case I think sysmeta is sufficient.\n\nBut apart from being more verbose in the comma separated string, we could make thismore generic e.g. ``X-Backend-Return-Prev-Metadata`` which would allow a caller to request the Etag of returned for example","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"},{"author":{"_account_id":38767,"name":"Wael Halbawi","display_name":"Wael Halbawi","email":"whalbawi@nvidia.com","username":"whalbawi"},"change_message_id":"4832cbbc3a83f6bc9a180926649bed027bc25c8a","unresolved":false,"context_lines":[{"line_number":11,"context_line":"includes a header for each listed name present in the overwritten"},{"line_number":12,"context_line":"object\u0027s metadata, renamed from `X-Object-Sysmeta-\u003ckey\u003e` to"},{"line_number":13,"context_line":"`X-Backend-Object-Prev-Sysmeta-\u003ckey\u003e`. Names that do not identify object"},{"line_number":14,"context_line":"sysmeta are ignored."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The behavior is opt-in so that:"},{"line_number":17,"context_line":"- A PUT request without the `X-Backend-Return-Object-Prev-Sysmeta`"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"ea4b6ffb_038223c3","line":14,"in_reply_to":"fe601487_393d45dd","updated":"2026-11-24 04:43:49.000000000","message":"I think it\u0027s worth a shot. Will attempt a proposal in a squash patch to gauge what the change might look like.","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":38767,"name":"Wael Halbawi","display_name":"Wael Halbawi","email":"whalbawi@nvidia.com","username":"whalbawi"},"change_message_id":"44ea988934f9a20f0235aabbabccbba03ccccb06","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"6d9f7b2e_31e6760a","updated":"2026-11-13 04:27:28.000000000","message":"This is an approach I\u0027m exploring. It still needs at least:\n- Tests\n- Potential header manipulation/extraction hardening","commit_id":"2c93a4d1c84a53fae6e6211388a17faed2b5b9f9"},{"author":{"_account_id":38767,"name":"Wael Halbawi","display_name":"Wael Halbawi","email":"whalbawi@nvidia.com","username":"whalbawi"},"change_message_id":"acd22e9b32d259c00bd5e19520c5af26d5a9b366","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"4aa4910a_06aeef32","updated":"2026-11-15 23:40:11.000000000","message":"Missing tests","commit_id":"494724e487f6ce042ff57749b8b00d3ad584a6a7"},{"author":{"_account_id":38767,"name":"Wael Halbawi","display_name":"Wael Halbawi","email":"whalbawi@nvidia.com","username":"whalbawi"},"change_message_id":"4832cbbc3a83f6bc9a180926649bed027bc25c8a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"7f837e80_c68da428","updated":"2026-11-24 04:43:49.000000000","message":"Thanks for taking a look, Al! I think your proposal to try and extend this machinery to handle any metadata is reasonable. I\u0027ll send out a squash patch to see what that change looks like. I don\u0027t have a lot of sense at the moment for its size/complexity.","commit_id":"d770c66bd44ed39615bb61c41be9f19390120536"}],"swift/common/request_helpers.py":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"85f3b63c94a2fad09fc181603c4585dbea04069f","unresolved":true,"context_lines":[{"line_number":300,"context_line":""},{"line_number":301,"context_line":"def is_object_prev_sysmeta(key):"},{"line_number":302,"context_line":"    \"\"\""},{"line_number":303,"context_line":"    Tests if a header key starts with and is longer than the prefix for"},{"line_number":304,"context_line":"    the sysmeta of an overwritten object."},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    :param key: header key"},{"line_number":307,"context_line":"    :returns: True if the key satisfies the test, False otherwise"}],"source_content_type":"text/x-python","patch_set":3,"id":"1eafaf4e_db79aeb5","line":304,"range":{"start_line":303,"start_character":68,"end_line":304,"end_character":40},"updated":"2026-11-19 14:42:37.000000000","message":"nit: it\u0027s not the prefix of the sysmeta of an overwritten object, it\u0027s the prefix of the transformed response header (but as per other comment, maybe we don\u0027t need to translate the response header names)","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"},{"author":{"_account_id":38767,"name":"Wael Halbawi","display_name":"Wael Halbawi","email":"whalbawi@nvidia.com","username":"whalbawi"},"change_message_id":"4832cbbc3a83f6bc9a180926649bed027bc25c8a","unresolved":false,"context_lines":[{"line_number":300,"context_line":""},{"line_number":301,"context_line":"def is_object_prev_sysmeta(key):"},{"line_number":302,"context_line":"    \"\"\""},{"line_number":303,"context_line":"    Tests if a header key starts with and is longer than the prefix for"},{"line_number":304,"context_line":"    the sysmeta of an overwritten object."},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    :param key: header key"},{"line_number":307,"context_line":"    :returns: True if the key satisfies the test, False otherwise"}],"source_content_type":"text/x-python","patch_set":3,"id":"ae0af7db_42b54302","line":304,"range":{"start_line":303,"start_character":68,"end_line":304,"end_character":40},"in_reply_to":"1eafaf4e_db79aeb5","updated":"2026-11-24 04:43:49.000000000","message":"Makes sense. Fixed.","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"}],"test/unit/obj/test_server.py":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"85f3b63c94a2fad09fc181603c4585dbea04069f","unresolved":true,"context_lines":[{"line_number":3131,"context_line":"            \u0027X-Object-Meta-Color, Content-Type\u0027,"},{"line_number":3132,"context_line":"            {\u0027X-Backend-Object-Prev-Sysmeta-Color\u0027: \u0027blue\u0027,"},{"line_number":3133,"context_line":"             \u0027X-Backend-Object-Prev-Sysmeta-Shape\u0027: \u0027circle\u0027},"},{"line_number":3134,"context_line":"            new_headers\u003d{\u0027X-Object-Sysmeta-Color\u0027: \u0027red\u0027})"},{"line_number":3135,"context_line":""},{"line_number":3136,"context_line":"    def test_PUT_overwrite_no_return_prev_sysmeta(self):"},{"line_number":3137,"context_line":"        old_headers \u003d {\u0027X-Object-Sysmeta-Color\u0027: \u0027blue\u0027}"}],"source_content_type":"text/x-python","patch_set":3,"id":"5af73799_7f634844","line":3134,"range":{"start_line":3134,"start_character":12,"end_line":3134,"end_character":58},"updated":"2026-11-19 14:42:37.000000000","message":"nice, check we don\u0027t get back what we sent with *this* PUT","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"},{"author":{"_account_id":38767,"name":"Wael Halbawi","display_name":"Wael Halbawi","email":"whalbawi@nvidia.com","username":"whalbawi"},"change_message_id":"4832cbbc3a83f6bc9a180926649bed027bc25c8a","unresolved":true,"context_lines":[{"line_number":3131,"context_line":"            \u0027X-Object-Meta-Color, Content-Type\u0027,"},{"line_number":3132,"context_line":"            {\u0027X-Backend-Object-Prev-Sysmeta-Color\u0027: \u0027blue\u0027,"},{"line_number":3133,"context_line":"             \u0027X-Backend-Object-Prev-Sysmeta-Shape\u0027: \u0027circle\u0027},"},{"line_number":3134,"context_line":"            new_headers\u003d{\u0027X-Object-Sysmeta-Color\u0027: \u0027red\u0027})"},{"line_number":3135,"context_line":""},{"line_number":3136,"context_line":"    def test_PUT_overwrite_no_return_prev_sysmeta(self):"},{"line_number":3137,"context_line":"        old_headers \u003d {\u0027X-Object-Sysmeta-Color\u0027: \u0027blue\u0027}"}],"source_content_type":"text/x-python","patch_set":3,"id":"08d3dd1f_a8c1c547","line":3134,"range":{"start_line":3134,"start_character":12,"end_line":3134,"end_character":58},"in_reply_to":"5af73799_7f634844","updated":"2026-11-24 04:43:49.000000000","message":"(I\u0027m probably missing something)\nThe helper `_check_PUT_overwrite_prev_sysmeta` asserts `dict` equality (L3119) between the returned response headers and the expected ones provided on L3132-3133. Is that not sufficient? Or do you think it\u0027s clearer if we move the assertion out of the helper?","commit_id":"abf86ee755e2d0dc821da2c7c699dd61368a8aff"}]}
