{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/2014","repository_url":"https://api.github.com/repos/docker/distribution","labels_url":"https://api.github.com/repos/docker/distribution/issues/2014/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/2014/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/2014/events","html_url":"https://github.com/docker/distribution/pull/2014","id":184367209,"number":2014,"title":"Add target media type to blob upload","user":{"login":"dmcgowan","id":169601,"avatar_url":"https://avatars.githubusercontent.com/u/169601?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcgowan","html_url":"https://github.com/dmcgowan","followers_url":"https://api.github.com/users/dmcgowan/followers","following_url":"https://api.github.com/users/dmcgowan/following{/other_user}","gists_url":"https://api.github.com/users/dmcgowan/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcgowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcgowan/subscriptions","organizations_url":"https://api.github.com/users/dmcgowan/orgs","repos_url":"https://api.github.com/users/dmcgowan/repos","events_url":"https://api.github.com/users/dmcgowan/events{/privacy}","received_events_url":"https://api.github.com/users/dmcgowan/received_events","type":"User","site_admin":false},"labels":[{"id":237597862,"url":"https://api.github.com/repos/docker/distribution/labels/status/0-triage","name":"status/0-triage","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/distribution/milestones/17","html_url":"https://github.com/docker/distribution/milestones/Registry/2.6","labels_url":"https://api.github.com/repos/docker/distribution/milestones/17/labels","id":1800003,"number":17,"title":"Registry/2.6","description":"","creator":{"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},"open_issues":29,"closed_issues":13,"state":"open","created_at":"2016-06-01T00:01:42Z","updated_at":"2016-10-29T00:07:27Z","due_on":"2016-11-10T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-10-20T23:41:56Z","updated_at":"2016-10-29T01:25:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/distribution/pulls/2014","html_url":"https://github.com/docker/distribution/pull/2014","diff_url":"https://github.com/docker/distribution/pull/2014.diff","patch_url":"https://github.com/docker/distribution/pull/2014.patch"},"body":"In order to support homogeneous repositories in a user friendly manner, blob uploads must fail fast when attempting to upload content which has a media type which differs from previously uploaded content. This change adds a header to the blob upload which specifies what the media type inside the corresponding manifest will be. Since content uploads start by uploading blobs failing fast requires a change to the blob upload endpoint.\r\n\r\nThis change does not alter the behavior of blob uploads but is required to add support in the client for registries with this feature enabled. "},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/257062495","html_url":"https://github.com/docker/distribution/pull/2014#issuecomment-257062495","issue_url":"https://api.github.com/repos/docker/distribution/issues/2014","id":257062495,"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},"created_at":"2016-10-29T01:25:25Z","updated_at":"2016-10-29T01:25:25Z","body":"@dmcgowan I don't think the returned registry mediatype should _ever_ be trusted. When I spec'ed out this feature in the past, the right approach centered around storing the mediatype as part of the repo blob reference, rather than with the blob itself, preventing disagreements with users. \r\n\r\nUltimately, hashes should _never_ be accessed without a corresponding descriptor, which should have the media type, so any headers from the registry are really unnecessary."}}
{"actor":{"display_login":"stevvooe"}}