)]}'
{"jenkins/__init__.py":[{"author":{"_account_id":1054,"name":"Darragh Bailey","email":"daragh.bailey@gmail.com","username":"dbailey-k"},"change_message_id":"c61eb98bc7583f44dda7dbc065292fd44431c201","unresolved":false,"context_lines":[{"line_number":245,"context_line":"            url_path \u003d format_spec"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"        if url_path.startswith(\u0027/\u0027):"},{"line_number":248,"context_line":"            url_path \u003d url_path[1:]"},{"line_number":249,"context_line":"        return urljoin(self.server, url_path)"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"    def maybe_add_crumb(self, req):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a1a9d01_e46b1584","line":248,"updated":"2015-10-02 15:02:27.000000000","message":"This function is specifically an internal one because of that behaviour as it depends on the format_spec when expanded never starting with a \u0027/\u0027.\n\nDon\u0027t see any occurrences of that occurring within this library.\n\nIn any case:\n\n return urljoin(self.server, url_path.lstrip(\u0027/\u0027))","commit_id":"ec8947d3b246591466c25d70a3fbeb22dceec27f"}],"tests/test_misc.py":[{"author":{"_account_id":1054,"name":"Darragh Bailey","email":"daragh.bailey@gmail.com","username":"dbailey-k"},"change_message_id":"c61eb98bc7583f44dda7dbc065292fd44431c201","unresolved":false,"context_lines":[{"line_number":10,"context_line":"        self.assertEqual(self.j._build_url(\u0027api/json\u0027),"},{"line_number":11,"context_line":"                         \u0027http://example.com/jenkins/api/json\u0027)"},{"line_number":12,"context_line":"        # All of the constant urls correctly omit the trailing slash,"},{"line_number":13,"context_line":"        # but it is possible that a construct like `\u0027/\u0027.join(...)`"},{"line_number":14,"context_line":"        # could result in a leading /"},{"line_number":15,"context_line":"        self.assertEqual(self.j._build_url(\u0027/api/json\u0027),"},{"line_number":16,"context_line":"                         \u0027http://example.com/jenkins/api/json\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a1a9d01_2777cfd5","line":13,"updated":"2015-10-02 15:02:27.000000000","message":"Is there any way the _get_job_folder() would return a value with a leading \u0027/\u0027 since this is a private method that can only get a preceding \u0027slash\u0027 if the detected job folder name returned starts with \u0027/\u0027.","commit_id":"ec8947d3b246591466c25d70a3fbeb22dceec27f"},{"author":{"_account_id":16946,"name":"Chris Burroughs","email":"chris.burroughs@gmail.com","username":"cburroughs"},"change_message_id":"470cf8463e8ab8c009be6a00cc3085e31d826142","unresolved":false,"context_lines":[{"line_number":10,"context_line":"        self.assertEqual(self.j._build_url(\u0027api/json\u0027),"},{"line_number":11,"context_line":"                         \u0027http://example.com/jenkins/api/json\u0027)"},{"line_number":12,"context_line":"        # All of the constant urls correctly omit the trailing slash,"},{"line_number":13,"context_line":"        # but it is possible that a construct like `\u0027/\u0027.join(...)`"},{"line_number":14,"context_line":"        # could result in a leading /"},{"line_number":15,"context_line":"        self.assertEqual(self.j._build_url(\u0027/api/json\u0027),"},{"line_number":16,"context_line":"                         \u0027http://example.com/jenkins/api/json\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a1a9d01_8e46eb4d","line":13,"in_reply_to":"9a1a9d01_2777cfd5","updated":"2015-10-02 18:08:44.000000000","message":"I\u0027ll add another test case for the empty string.  It looks like the folder plugin does not allow slashes in folder names so I think everything is okay there.","commit_id":"ec8947d3b246591466c25d70a3fbeb22dceec27f"},{"author":{"_account_id":1054,"name":"Darragh Bailey","email":"daragh.bailey@gmail.com","username":"dbailey-k"},"change_message_id":"b1bc95d66c1d3c5ed6fc9af19026464214508d36","unresolved":false,"context_lines":[{"line_number":12,"context_line":"        # All of the constant urls correctly omit the trailing slash,"},{"line_number":13,"context_line":"        # but it is possible that a construct like `\u0027/\u0027.join(...)`"},{"line_number":14,"context_line":"        # could result in a leading /"},{"line_number":15,"context_line":"        self.assertEqual(self.j._build_url(\u0027/api/json\u0027),"},{"line_number":16,"context_line":"                         \u0027http://example.com/jenkins/api/json\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a1a9d01_04e37b34","line":15,"updated":"2015-10-05 15:05:53.000000000","message":"This may be the easiest way to test the change, but I think it\u0027s important to include a test that is actually representative of the bug you are encountering. \n\nI.e. what api call is being made where the jenkins server is set to http://example.com/jenkins and results in the wrong url being constructed.\n\nI would be looking to add a test or two to the API tests that tickle this bug by inspecting the uri that would be used rather than worrying about testing the helper method.\n\nThat also makes it easier to understand in the future where the bug could be coming from for future maintainers, cause the way I see this, it would not be unreasonable for someone to submit a revert saying this is a superfluous fix since it\u0027s not clear where the starting \u0027/\u0027 that causes the problem would appear from, and on first view it would appear not to be possible making this current test somewhat limited.","commit_id":"6a7f4f33047615295ad318d5bcbb241c670cf9a3"}]}
