)]}'
{"glance/common/store_utils.py":[{"author":{"_account_id":38762,"name":"Sahil Kumbhar","display_name":"sakumbha","email":"sakumbha@redhat.com","username":"sakumbha"},"change_message_id":"eee7b11f64209bc13c9c917b1e0fc8cee9f863bf","unresolved":true,"context_lines":[{"line_number":326,"context_line":"    bucket \u003d getattr(store_instance, \u0027bucket\u0027)"},{"line_number":327,"context_line":""},{"line_number":328,"context_line":"    # Remove protocol https or http in s3_host"},{"line_number":329,"context_line":"    s3_host \u003d urlparse.urlparse(s3_host).netloc"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"    # Construct the full URL with the object path"},{"line_number":332,"context_line":"    return \"%s://%s:%s@%s/%s%s\" % ("}],"source_content_type":"text/x-python","patch_set":1,"id":"cd6910f3_d307841b","line":329,"range":{"start_line":329,"start_character":4,"end_line":329,"end_character":47},"updated":"2026-06-11 12:28:38.000000000","message":"this will fail for s3_host \u003d s3.amazonaws.com,\nfor e.g:\nurl \u003d s3://key:secret@s3.amazonaws.com/bucket/object/key\nafterparse \u003d s3://key:secret@/bucket/object/key","commit_id":"af629d117b183dbabb0a5f79e748673d99013591"},{"author":{"_account_id":38762,"name":"Sahil Kumbhar","display_name":"sakumbha","email":"sakumbha@redhat.com","username":"sakumbha"},"change_message_id":"eee7b11f64209bc13c9c917b1e0fc8cee9f863bf","unresolved":true,"context_lines":[{"line_number":327,"context_line":""},{"line_number":328,"context_line":"    # Remove protocol https or http in s3_host"},{"line_number":329,"context_line":"    s3_host \u003d urlparse.urlparse(s3_host).netloc"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"    # Construct the full URL with the object path"},{"line_number":332,"context_line":"    return \"%s://%s:%s@%s/%s%s\" % ("},{"line_number":333,"context_line":"        scheme, access_key, secret_key, s3_host, bucket, path)"}],"source_content_type":"text/x-python","patch_set":1,"id":"a41c86a6_8dcccff9","line":330,"updated":"2026-06-11 12:28:38.000000000","message":"I think you could implement it in this way:\n\n    \u0027if s3_host.startswith(\u0027http://\u0027):\n        s3_host \u003d s3_host[len(\u0027http://\u0027):]\n    elif s3_host.startswith(\u0027https://\u0027):\n        s3_host \u003d s3_host[len(\u0027https://\u0027):]\u0027","commit_id":"af629d117b183dbabb0a5f79e748673d99013591"}]}
