{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/1346","repository_url":"https://api.github.com/repos/docker/distribution","labels_url":"https://api.github.com/repos/docker/distribution/issues/1346/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/1346/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/1346/events","html_url":"https://github.com/docker/distribution/issues/1346","id":126525740,"number":1346,"title":"Redirects to upload location should use relative URL","user":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/docker/distribution/milestones/14","html_url":"https://github.com/docker/distribution/milestones/Registry/2.4","labels_url":"https://api.github.com/repos/docker/distribution/milestones/14/labels","id":1532387,"number":14,"title":"Registry/2.4","description":"","creator":{"login":"dmp42","id":332946,"avatar_url":"https://avatars.githubusercontent.com/u/332946?v=3","gravatar_id":"","url":"https://api.github.com/users/dmp42","html_url":"https://github.com/dmp42","followers_url":"https://api.github.com/users/dmp42/followers","following_url":"https://api.github.com/users/dmp42/following{/other_user}","gists_url":"https://api.github.com/users/dmp42/gists{/gist_id}","starred_url":"https://api.github.com/users/dmp42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmp42/subscriptions","organizations_url":"https://api.github.com/users/dmp42/orgs","repos_url":"https://api.github.com/users/dmp42/repos","events_url":"https://api.github.com/users/dmp42/events{/privacy}","received_events_url":"https://api.github.com/users/dmp42/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":3,"state":"open","created_at":"2016-01-21T22:50:32Z","updated_at":"2016-02-17T02:25:21Z","due_on":"2016-03-28T07:00:00Z","closed_at":null},"comments":7,"created_at":"2016-01-13T21:59:14Z","updated_at":"2016-02-24T21:36:31Z","closed_at":null,"body":"A common source of problems is that we provide an absolute URL in registry redirects. This primarily affects the upload location used by clients. We need to either just let these be relative or let the user decide if they want to turn it off.\r\n\r\nMy guess is that removing this should work out of the box but it should be tested.\r\n\r\nThe original reason we support absolute URLs is to support breaking out of a load balancer to scale io. This has been less useful since we don't have a solid way of associated authentication with the redirect target. We could make this more useful by implementing some sort of URL signing scheme."},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/188462499","html_url":"https://github.com/docker/distribution/issues/1346#issuecomment-188462499","issue_url":"https://api.github.com/repos/docker/distribution/issues/1346","id":188462499,"user":{"login":"RichardScothern","id":922018,"avatar_url":"https://avatars.githubusercontent.com/u/922018?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardScothern","html_url":"https://github.com/RichardScothern","followers_url":"https://api.github.com/users/RichardScothern/followers","following_url":"https://api.github.com/users/RichardScothern/following{/other_user}","gists_url":"https://api.github.com/users/RichardScothern/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardScothern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardScothern/subscriptions","organizations_url":"https://api.github.com/users/RichardScothern/orgs","repos_url":"https://api.github.com/users/RichardScothern/repos","events_url":"https://api.github.com/users/RichardScothern/events{/privacy}","received_events_url":"https://api.github.com/users/RichardScothern/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T21:36:31Z","updated_at":"2016-02-24T21:36:31Z","body":"@stevvooe : unfortunately that's not what is happening in this case.  `routeURL` is read from the `Location` header of a POST request to the blob upload endpoint and fed directly into `NewRequest` "}}