)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"ec88f0bc1c5d14da6496d4357ac34a506b1566c4","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Handle slashes in path prefixes"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A bug was exposed with the qos extension and service plugin that if the path"},{"line_number":10,"context_line":"prefix of a service plugin has a / in it, the determination that a service"},{"line_number":11,"context_line":"plugin has a path prefix failed.  Stripping the slashes before the comparison"},{"line_number":12,"context_line":"corrects the issue."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a1b2928_4a54a353","line":9,"updated":"2016-04-11 01:52:30.000000000","message":"nit: Limit it to 70 characters if possible","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"62c2c77b0a29493e8daa4734daa49555f762af6d","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Handle slashes in path prefixes"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A bug was exposed with the qos extension and service plugin that if the path"},{"line_number":10,"context_line":"prefix of a service plugin has a / in it, the determination that a service"},{"line_number":11,"context_line":"plugin has a path prefix failed.  Stripping the slashes before the comparison"},{"line_number":12,"context_line":"corrects the issue."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5a18252c_7ed8401e","line":9,"in_reply_to":"7a1b2928_4a54a353","updated":"2016-04-12 03:40:17.000000000","message":"really wish there weren\u0027t all these different lengths to remember :(  I need to setup my vim to show the 70.","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"ec88f0bc1c5d14da6496d4357ac34a506b1566c4","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A bug was exposed with the qos extension and service plugin that if the path"},{"line_number":10,"context_line":"prefix of a service plugin has a / in it, the determination that a service"},{"line_number":11,"context_line":"plugin has a path prefix failed.  Stripping the slashes before the comparison"},{"line_number":12,"context_line":"corrects the issue."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: Ic6d9bdccb425bb986de9216bd47444b2d94126c5"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a1b2928_cac6f315","line":11,"updated":"2016-04-11 01:52:30.000000000","message":"Just a thought:\nThe actual bug mentions pecan wsgi\nThe fix also mentions the same, but the commit message does not.\nWhen I started reviewing it, I felt a disconnect between the Commit message and the actual bug. Would be great if it is reworked.\nBut this is just my Opinion.","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"62c2c77b0a29493e8daa4734daa49555f762af6d","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A bug was exposed with the qos extension and service plugin that if the path"},{"line_number":10,"context_line":"prefix of a service plugin has a / in it, the determination that a service"},{"line_number":11,"context_line":"plugin has a path prefix failed.  Stripping the slashes before the comparison"},{"line_number":12,"context_line":"corrects the issue."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: Ic6d9bdccb425bb986de9216bd47444b2d94126c5"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5a18252c_1ee78ce5","line":11,"in_reply_to":"7a1b2928_cac6f315","updated":"2016-04-12 03:40:17.000000000","message":"you\u0027re right.  it definitely needs to be specified, and usually I do but this one I just forgot to.","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"}],"neutron/extensions/qos.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"cdd7dadcbe54f3363bcbc744bbd8d3c853a83260","unresolved":false,"context_lines":[{"line_number":182,"context_line":"            return {}"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def get_pecan_controllers(self):"},{"line_number":185,"context_line":"        return []"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"@six.add_metaclass(abc.ABCMeta)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a1b2928_d030640a","line":185,"updated":"2016-04-11 03:49:46.000000000","message":"I wonder why this is required.\nSome comment here about the reason would be appreciated.","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"62c2c77b0a29493e8daa4734daa49555f762af6d","unresolved":false,"context_lines":[{"line_number":182,"context_line":"            return {}"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def get_pecan_controllers(self):"},{"line_number":185,"context_line":"        return []"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"@six.add_metaclass(abc.ABCMeta)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a18252c_1efe6c6b","line":185,"in_reply_to":"7a1b2928_d030640a","updated":"2016-04-12 03:40:17.000000000","message":"it\u0027s not, I forgot to remove it after experimenting","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"}],"neutron/manager.py":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ccbfa1758765be19e05c67745ff26bde55f67860","unresolved":false,"context_lines":[{"line_number":271,"context_line":"        for service_plugin in service_plugins:"},{"line_number":272,"context_line":"            plugin_path_prefix \u003d getattr(service_plugin, \u0027path_prefix\u0027, None)"},{"line_number":273,"context_line":"            if (plugin_path_prefix and"},{"line_number":274,"context_line":"                    strip_slashes(plugin_path_prefix) \u003d\u003d path_prefix):"},{"line_number":275,"context_line":"                return service_plugin"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a1b2928_edc01be3","line":274,"updated":"2016-04-11 10:23:40.000000000","message":"I wonder how it was working till date?","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"62c2c77b0a29493e8daa4734daa49555f762af6d","unresolved":false,"context_lines":[{"line_number":271,"context_line":"        for service_plugin in service_plugins:"},{"line_number":272,"context_line":"            plugin_path_prefix \u003d getattr(service_plugin, \u0027path_prefix\u0027, None)"},{"line_number":273,"context_line":"            if (plugin_path_prefix and"},{"line_number":274,"context_line":"                    strip_slashes(plugin_path_prefix) \u003d\u003d path_prefix):"},{"line_number":275,"context_line":"                return service_plugin"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5a18252c_3e236807","line":274,"in_reply_to":"7a1b2928_edc01be3","updated":"2016-04-12 03:40:17.000000000","message":"this method wasn\u0027t being used by the legacy wsgi, only for the pecan wsgi, and as such, it wasn\u0027t working before :)\n\nBut if you\u0027re asking how the legacy wsgi was working before, well its because the routes.mapper call strips the slashes on the prefix.  in this particular case our code will control the routing and need to strip it.","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"cdd7dadcbe54f3363bcbc744bbd8d3c853a83260","unresolved":false,"context_lines":[{"line_number":278,"context_line":"# Shamelessly stolen from routes.mapper, not that it\u0027s a particular complex"},{"line_number":279,"context_line":"# algorithm.  Didn\u0027t see the need to import routes.mapper just for this."},{"line_number":280,"context_line":"def strip_slashes(slashee):"},{"line_number":281,"context_line":"    \"\"\"Remove slashes from the beginning and end of a part/URL.\"\"\""},{"line_number":282,"context_line":"    if slashee.startswith(\u0027/\u0027):"},{"line_number":283,"context_line":"        slashee \u003d slashee[1:]"},{"line_number":284,"context_line":"    if slashee.endswith(\u0027/\u0027):"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a1b2928_505e1446","line":281,"updated":"2016-04-11 03:49:46.000000000","message":"The logic just strips leading and trailing slashes.\n\nDoesn\u0027t strip(\u0027/\u0027) work?\n\nThe only difference is that \u0027//aaa/bbb//\u0027.strip(\u0027/\u0027) returns \u0027aaa/bbb\u0027, i.e., multiple leading and trailing slashes will be stripped.","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"62c2c77b0a29493e8daa4734daa49555f762af6d","unresolved":false,"context_lines":[{"line_number":278,"context_line":"# Shamelessly stolen from routes.mapper, not that it\u0027s a particular complex"},{"line_number":279,"context_line":"# algorithm.  Didn\u0027t see the need to import routes.mapper just for this."},{"line_number":280,"context_line":"def strip_slashes(slashee):"},{"line_number":281,"context_line":"    \"\"\"Remove slashes from the beginning and end of a part/URL.\"\"\""},{"line_number":282,"context_line":"    if slashee.startswith(\u0027/\u0027):"},{"line_number":283,"context_line":"        slashee \u003d slashee[1:]"},{"line_number":284,"context_line":"    if slashee.endswith(\u0027/\u0027):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a18252c_5e3f4425","line":281,"in_reply_to":"7a1b2928_505e1446","updated":"2016-04-12 03:40:17.000000000","message":"yep, i should have gone with my first instinct and tested the string.strip out but I was assuming routes.mapper would know that :(","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"ec88f0bc1c5d14da6496d4357ac34a506b1566c4","unresolved":false,"context_lines":[{"line_number":283,"context_line":"        slashee \u003d slashee[1:]"},{"line_number":284,"context_line":"    if slashee.endswith(\u0027/\u0027):"},{"line_number":285,"context_line":"        slashee \u003d slashee[:-1]"},{"line_number":286,"context_line":"    return slashee"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a1b2928_0ad10bce","line":286,"updated":"2016-04-11 01:52:30.000000000","message":"pep8 is becoming a banshee for this slashee here :(","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"62c2c77b0a29493e8daa4734daa49555f762af6d","unresolved":false,"context_lines":[{"line_number":283,"context_line":"        slashee \u003d slashee[1:]"},{"line_number":284,"context_line":"    if slashee.endswith(\u0027/\u0027):"},{"line_number":285,"context_line":"        slashee \u003d slashee[:-1]"},{"line_number":286,"context_line":"    return slashee"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a18252c_7e4680c0","line":286,"in_reply_to":"7a1b2928_0ad10bce","updated":"2016-04-12 03:40:17.000000000","message":"haha, luckily akihiro\u0027s comment has rendered this method useless","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"}],"neutron/tests/functional/pecan_wsgi/test_controllers.py":[{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"ec88f0bc1c5d14da6496d4357ac34a506b1566c4","unresolved":false,"context_lines":[{"line_number":413,"context_line":"        self.assertEqual(200, response.status_int)"},{"line_number":414,"context_line":"        self.assertEqual(_SERVICE_PLUGIN_INDEX_BODY, response.json_body)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"    def test_service_plugin_uri_with_prefix_slash(self):"},{"line_number":417,"context_line":"        service_plugin \u003d namedtuple(\u0027DummyServicePlugin\u0027, \u0027path_prefix\u0027)"},{"line_number":418,"context_line":"        service_plugin.path_prefix \u003d \u0027/dummy\u0027"},{"line_number":419,"context_line":"        nm \u003d manager.NeutronManager.get_instance()"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a1b2928_2ad847ef","line":416,"updated":"2016-04-11 01:52:30.000000000","message":"Can you also write a test for the suffix slash? Or include it in this test itself?\nThat would cover the strip_slashes function completely","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"62c2c77b0a29493e8daa4734daa49555f762af6d","unresolved":false,"context_lines":[{"line_number":413,"context_line":"        self.assertEqual(200, response.status_int)"},{"line_number":414,"context_line":"        self.assertEqual(_SERVICE_PLUGIN_INDEX_BODY, response.json_body)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"    def test_service_plugin_uri_with_prefix_slash(self):"},{"line_number":417,"context_line":"        service_plugin \u003d namedtuple(\u0027DummyServicePlugin\u0027, \u0027path_prefix\u0027)"},{"line_number":418,"context_line":"        service_plugin.path_prefix \u003d \u0027/dummy\u0027"},{"line_number":419,"context_line":"        nm \u003d manager.NeutronManager.get_instance()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a18252c_fe8730d5","line":416,"in_reply_to":"7a1b2928_2ad847ef","updated":"2016-04-12 03:40:17.000000000","message":"yeah ill include it in this test, even though i\u0027m removing the strip_slashes function, it should still be tested.","commit_id":"f7646f45b9a16cb5f9eecabe24ee8858314af49a"}]}
