{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/1701","labels_url":"https://api.github.com/repos/openshift/origin/issues/1701/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/1701/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/1701/events","html_url":"https://github.com/openshift/origin/issues/1701","id":67675266,"number":1701,"title":"selfLink returned from ImageStreamImage and ImageStreamTag calls is not a valid link","user":{"login":"jwforres","id":1467629,"avatar_url":"https://avatars.githubusercontent.com/u/1467629?v=3","gravatar_id":"","url":"https://api.github.com/users/jwforres","html_url":"https://github.com/jwforres","followers_url":"https://api.github.com/users/jwforres/followers","following_url":"https://api.github.com/users/jwforres/following{/other_user}","gists_url":"https://api.github.com/users/jwforres/gists{/gist_id}","starred_url":"https://api.github.com/users/jwforres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwforres/subscriptions","organizations_url":"https://api.github.com/users/jwforres/orgs","repos_url":"https://api.github.com/users/jwforres/repos","events_url":"https://api.github.com/users/jwforres/events{/privacy}","received_events_url":"https://api.github.com/users/jwforres/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ncdc","id":354,"avatar_url":"https://avatars.githubusercontent.com/u/354?v=3","gravatar_id":"","url":"https://api.github.com/users/ncdc","html_url":"https://github.com/ncdc","followers_url":"https://api.github.com/users/ncdc/followers","following_url":"https://api.github.com/users/ncdc/following{/other_user}","gists_url":"https://api.github.com/users/ncdc/gists{/gist_id}","starred_url":"https://api.github.com/users/ncdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncdc/subscriptions","organizations_url":"https://api.github.com/users/ncdc/orgs","repos_url":"https://api.github.com/users/ncdc/repos","events_url":"https://api.github.com/users/ncdc/events{/privacy}","received_events_url":"https://api.github.com/users/ncdc/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-04-10T20:23:47Z","updated_at":"2015-04-13T14:46:39Z","closed_at":null,"body":"It returns a URL like:\r\n\r\n`/osapi/v1beta1/imageStreamImages/b85d88371cd9f8189637e57d65844dc57547360f6aadf8b5bdd46a6e5b288505?namespace=`\r\n\r\nWhich can't be retrieved because imageStreamImages expects the name to be \\<imageStreamName\\>@\\<imageId\\>"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/92386566","html_url":"https://github.com/openshift/origin/issues/1701#issuecomment-92386566","issue_url":"https://api.github.com/repos/openshift/origin/issues/1701","id":92386566,"user":{"login":"ncdc","id":354,"avatar_url":"https://avatars.githubusercontent.com/u/354?v=3","gravatar_id":"","url":"https://api.github.com/users/ncdc","html_url":"https://github.com/ncdc","followers_url":"https://api.github.com/users/ncdc/followers","following_url":"https://api.github.com/users/ncdc/following{/other_user}","gists_url":"https://api.github.com/users/ncdc/gists{/gist_id}","starred_url":"https://api.github.com/users/ncdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncdc/subscriptions","organizations_url":"https://api.github.com/users/ncdc/orgs","repos_url":"https://api.github.com/users/ncdc/repos","events_url":"https://api.github.com/users/ncdc/events{/privacy}","received_events_url":"https://api.github.com/users/ncdc/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T14:46:39Z","updated_at":"2015-04-13T14:46:39Z","body":"Is this acceptable for `ImageStreamTag`? Note that it still returns what is actually an `Image`, but the `kind` is `ImageStreamTag`, and the metadata has `name=busybox:latest` and `selfLink=/osapi/v1beta1/imageStreamTags/busybox:latest?namespace=p1`. The contents of the image may change over time, but the `name` and `selfLink` will always stay the same.\r\n\r\n```\r\n$ osc get -n p1 istag busybox:latest -o yaml\r\n```\r\n```yaml\r\napiVersion: v1beta1\r\ndockerImageMetadata:\r\n  Architecture: amd64\r\n  Author: \"Jérôme Petazzoni <jerome@docker.com>\"\r\n  Config:\r\n    Cmd:\r\n    - /bin/sh\r\n    Env:\r\n    - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\n    Hostname: 7f674915980d\r\n    Image: ea13149945cb6b1e746bf28032f02e9b5a793523481a0a18645fc77ad53c4ea2\r\n  Container: 83dcf36ad1042b90f4ea8b2ebb60e61b2f1a451a883e04b388be299ad382b259\r\n  ContainerConfig:\r\n    Cmd:\r\n    - /bin/sh\r\n    - -c\r\n    - '#(nop) CMD [/bin/sh]'\r\n    Env:\r\n    - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\n    Hostname: 7f674915980d\r\n    Image: ea13149945cb6b1e746bf28032f02e9b5a793523481a0a18645fc77ad53c4ea2\r\n  Created: 2014-12-31T22:23:56Z\r\n  DockerVersion: 1.4.1\r\n  Id: 4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125\r\n  Parent: ea13149945cb6b1e746bf28032f02e9b5a793523481a0a18645fc77ad53c4ea2\r\n  apiVersion: \"1.0\"\r\n  kind: DockerImage\r\ndockerImageMetadataVersion: \"1.0\"\r\ndockerImageReference: 172.30.221.126:5000/p1/busybox@sha256:05e90a5daafdca2a6508cde51651b19ca541d79f68d675a864b6cc745e54983c\r\nkind: ImageStreamTag\r\nmetadata:\r\n  creationTimestamp: 2015-04-10T20:14:01Z\r\n  name: busybox:latest\r\n  namespace: p1\r\n  resourceVersion: \"3130\"\r\n  selfLink: /osapi/v1beta1/imageStreamTags/busybox:latest?namespace=p1\r\n  uid: 20bba079-dfbe-11e4-b304-001c422dcd49\r\n```"}}