)]}'
{"marconi/queues/transport/wsgi/messages.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"208a7367c4d56eb8d15434c44bf017db74e639ba","unresolved":false,"context_lines":[{"line_number":80,"context_line":"            client_uuid \u003d uuid.UUID(req.get_header(\u0027Client-ID\u0027, required\u003dTrue))"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        except ValueError as ex:"},{"line_number":83,"context_line":"            raise wsgi_exceptions.HTTPBadRequestBody(str(ex))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        kwargs \u003d {}"},{"line_number":86,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMjA%3D","line":83,"updated":"2013-10-02 14:58:29.000000000","message":"Lets use unicode() here and let it be encoded later before leaving Marconi\u0027s land.","commit_id":"6d7cd594e3a5108f42ad5b92f4cee9588875b9fc"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"208a7367c4d56eb8d15434c44bf017db74e639ba","unresolved":false,"context_lines":[{"line_number":146,"context_line":"            client_uuid \u003d uuid.UUID(req.get_header(\u0027Client-ID\u0027, required\u003dTrue))"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"        except ValueError as ex:"},{"line_number":149,"context_line":"            raise wsgi_exceptions.HTTPBadRequestBody(str(ex))"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        # Place JSON size restriction before parsing"},{"line_number":152,"context_line":"        if req.content_length \u003e CFG.content_max_length:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FMi4%3D","line":149,"updated":"2013-10-02 14:58:29.000000000","message":"ditto","commit_id":"6d7cd594e3a5108f42ad5b92f4cee9588875b9fc"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"f03cd1f56bf2c52d6946c4cb5bfd4a9d882826c7","unresolved":false,"context_lines":[{"line_number":147,"context_line":"            client_uuid \u003d uuid.UUID(req.get_header(\u0027Client-ID\u0027, required\u003dTrue))"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        except ValueError as ex:"},{"line_number":150,"context_line":"            raise wsgi_exceptions.HTTPBadRequestBody(six.text_type(ex))"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        # Place JSON size restriction before parsing"},{"line_number":153,"context_line":"        if req.content_length \u003e CFG.content_max_length:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAS3%2F%2FE3o%3D","line":150,"updated":"2013-10-04 20:20:46.000000000","message":"I don\u0027t think this is the correct exception type here. The body may or may not be fine; the problem is with one of the headers. How about defining a new exception class or just using falcon.HTTPBadRequest directly?\n\nAlso, I\u0027d prefer not to serialize the exception directly. I don\u0027t want to be at the mercy of the python standard library when it comes to text that a user will actually see.","commit_id":"34dfae9cfafb802f5d4ebcef30417ceed22204e9"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"14e7a1c7fb0aa1b25fa5a95b8edcdb676cdc96c7","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        }"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    @staticmethod"},{"line_number":132,"context_line":"    def __get_client_uuid(req):"},{"line_number":133,"context_line":"        try:"},{"line_number":134,"context_line":"            return uuid.UUID(req.get_header(\u0027Client-ID\u0027, required\u003dTrue))"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATH%2F%2F8UU%3D","line":132,"updated":"2013-10-07 17:46:45.000000000","message":"I would prefer having this function in wsgi/utils.py","commit_id":"294db0350c14690b53f1925bba0c11d92055fd3b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"c213fe2451e1cfe654e19317fe320324c698e141","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        }"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    @staticmethod"},{"line_number":132,"context_line":"    def __get_client_uuid(req):"},{"line_number":133,"context_line":"        try:"},{"line_number":134,"context_line":"            return uuid.UUID(req.get_header(\u0027Client-ID\u0027, required\u003dTrue))"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATH%2F%2F8jc%3D","line":132,"updated":"2013-10-07 16:41:12.000000000","message":"rename request: _get_client_uuid\n\nIs the double-underscore really necessary? It invokes a name-mangling algorithm to make things \"extra\" private.","commit_id":"294db0350c14690b53f1925bba0c11d92055fd3b"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"d84c55e327a59485a9e618386865a366580dc022","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        }"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    @staticmethod"},{"line_number":132,"context_line":"    def __get_client_uuid(req):"},{"line_number":133,"context_line":"        try:"},{"line_number":134,"context_line":"            return uuid.UUID(req.get_header(\u0027Client-ID\u0027, required\u003dTrue))"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATH%2F%2F8d8%3D","line":132,"in_reply_to":"AAAATH%2F%2F8hk%3D","updated":"2013-10-07 17:02:04.000000000","message":"I agree that _name is not private, but why is private necessary? Isn\u0027t it enough to discourage external use by indicating it in the name using \u0027_get_...\u0027?","commit_id":"294db0350c14690b53f1925bba0c11d92055fd3b"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"9a2d7ab6a6641d4ddeef049ee651f888592b59e7","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        }"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    @staticmethod"},{"line_number":132,"context_line":"    def __get_client_uuid(req):"},{"line_number":133,"context_line":"        try:"},{"line_number":134,"context_line":"            return uuid.UUID(req.get_header(\u0027Client-ID\u0027, required\u003dTrue))"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATH%2F%2F8hk%3D","line":132,"in_reply_to":"AAAATH%2F%2F8jc%3D","updated":"2013-10-07 16:46:04.000000000","message":"It\u0027s not \"extra\"; private should be private. _name is not private.","commit_id":"294db0350c14690b53f1925bba0c11d92055fd3b"}],"marconi/queues/transport/wsgi/utils.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"2663c235f188957899a73ded0d5cc913851011be","unresolved":false,"context_lines":[{"line_number":157,"context_line":"    raise exceptions.HTTPBadRequestBody(description)"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"def get_client_uuid(req):"},{"line_number":161,"context_line":"    \"\"\"Read a required Client-ID from a request."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    :param req: A falcon.Request object"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAATH%2F%2F8FA%3D","line":160,"updated":"2013-10-07 18:58:11.000000000","message":"I\u0027m happy to keep this here for now but I think a better place for it would be:\n\nhttps://github.com/openstack/marconi/blob/master/marconi/queues/transport/utils.py\n\nOther transport could benefit from this function.","commit_id":"e1ee34644945700bdcdb0cc476a5a22e3dfc1f52"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"810eef0213f36bda6410fe6a55d77dd84000ab33","unresolved":false,"context_lines":[{"line_number":157,"context_line":"    raise exceptions.HTTPBadRequestBody(description)"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"def get_client_uuid(req):"},{"line_number":161,"context_line":"    \"\"\"Read a required Client-ID from a request."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    :param req: A falcon.Request object"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAATH%2F%2F8C8%3D","line":160,"in_reply_to":"AAAATH%2F%2F8FA%3D","updated":"2013-10-07 19:05:04.000000000","message":"This has to specific to each transport driver, because it directly talks to falcon object (other transport driver may not even has headers!).  This is a good use case of Python3\u0027s single dispatch function though :)","commit_id":"e1ee34644945700bdcdb0cc476a5a22e3dfc1f52"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"54511c8c77d6ba279e7f7c8bbfd75cd4193b5784","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    except ValueError:"},{"line_number":173,"context_line":"        description \u003d _(u\u0027Malformed hexadecimal UUID.\u0027)"},{"line_number":174,"context_line":"        raise exceptions.HTTPBadRequestAPI(description)"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAATH%2F%2F8Ds%3D","line":174,"updated":"2013-10-07 19:05:15.000000000","message":"Where is this class defined?\n\nAlso, the name is a little awkward... Since it is already namespaced such that it doesn\u0027t collide with falcon.HTTPBadRequest, how about just dropping \"API\" from the name? Alternatively, you could make this exception more specific, such as \"HTTPBadRequestHeader\".\n\nI\u0027d also like to see the description include the name of the header.","commit_id":"e1ee34644945700bdcdb0cc476a5a22e3dfc1f52"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"33ef881d9a40c2e7dcad612a89748d19708ab101","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    except ValueError:"},{"line_number":173,"context_line":"        description \u003d _(u\u0027Malformed hexadecimal UUID.\u0027)"},{"line_number":174,"context_line":"        raise exceptions.HTTPBadRequestAPI(description)"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAATH%2F%2F7%2FE%3D","line":174,"in_reply_to":"AAAATH%2F%2F8Ds%3D","updated":"2013-10-07 19:24:02.000000000","message":"in another patch.\n\nThat patch uses this to indicate input validation errors, which are not\nspecific to headers/body.  Client UUID is similar.  But I agree that here\nmisses a word \"header\"... Hope user knows that from the documents...","commit_id":"e1ee34644945700bdcdb0cc476a5a22e3dfc1f52"}],"marconi/tests/functional/helpers.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"f03cd1f56bf2c52d6946c4cb5bfd4a9d882826c7","unresolved":false,"context_lines":[{"line_number":47,"context_line":"               \"User-Agent\": conf.headers.user_agent,"},{"line_number":48,"context_line":"               \"Accept\": \"application/json\","},{"line_number":49,"context_line":"               \"X-Project-ID\": conf.headers.project_id,"},{"line_number":50,"context_line":"               \"Client-ID\": uuid.uuid1().hex,"},{"line_number":51,"context_line":"               }"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    return headers"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAS3%2F%2FE24%3D","line":50,"updated":"2013-10-04 20:20:46.000000000","message":"Actually, I would prefer sticking with the canonical form, since it will be less confusing for users, e.g.:\n\n0687f5a6-51e0-4db2-a627-c08226fbfc7c\n\nTechnically, we will except hex as well as the code is written, but I just want to make sure our tests simulate what the users are expected to do.","commit_id":"34dfae9cfafb802f5d4ebcef30417ceed22204e9"}]}
