{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/699","labels_url":"https://api.github.com/repos/cloudfoundry/cli/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/cli/issues/699/comments","events_url":"https://api.github.com/repos/cloudfoundry/cli/issues/699/events","html_url":"https://github.com/cloudfoundry/cli/issues/699","id":119230248,"number":699,"title":"[Plugin Dev] Domain parsing seems wrong in GetApp model","user":{"login":"emirozer","id":5015104,"avatar_url":"https://avatars.githubusercontent.com/u/5015104?v=3","gravatar_id":"","url":"https://api.github.com/users/emirozer","html_url":"https://github.com/emirozer","followers_url":"https://api.github.com/users/emirozer/followers","following_url":"https://api.github.com/users/emirozer/following{/other_user}","gists_url":"https://api.github.com/users/emirozer/gists{/gist_id}","starred_url":"https://api.github.com/users/emirozer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emirozer/subscriptions","organizations_url":"https://api.github.com/users/emirozer/orgs","repos_url":"https://api.github.com/users/emirozer/repos","events_url":"https://api.github.com/users/emirozer/events{/privacy}","received_events_url":"https://api.github.com/users/emirozer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-27T17:46:41Z","updated_at":"2015-12-08T09:08:52Z","closed_at":null,"body":"Hi @krishicks & @simonleung8 ,\r\n\r\nI am trying to access the Domain field in GetApp_RouteSummary:\r\nhttps://github.com/cloudfoundry/cli/blob/master/plugin/models/get_app.go#L46\r\n\r\nNo matter for which app i try i always get this result : {   false} \r\n\r\nExample of what routes strutct has:\r\n```\r\n[{92222bca-952e-11e5-9166-507b9d5e74f4 emir {   false}}]\r\n```\r\nI than did,  export CF_TRACE=true, checked the json response and voila:\r\n```\r\n\"domain\":{  \r\n            \"guid\":\"92222bca-952e-11e5-9166-507b9d5e74f4\",\r\n            \"name\":\"cfapps.io\"\r\n         }\r\n```\r\n\r\nI believe the marshalling of that structs domain part might have a bug, couldnt pin point where exactly the response gets marshalled into that struct..\r\n\r\n\r\nOS: Ubuntu 15.10\r\nGo version: 1.5.1\r\nCF version: 6.14\r\nRunning on Pivotal Web Services\r\n\r\n\r\nBest,\r\n\r\nEmir\r\n"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/comments/162822678","html_url":"https://github.com/cloudfoundry/cli/issues/699#issuecomment-162822678","issue_url":"https://api.github.com/repos/cloudfoundry/cli/issues/699","id":162822678,"user":{"login":"emirozer","id":5015104,"avatar_url":"https://avatars.githubusercontent.com/u/5015104?v=3","gravatar_id":"","url":"https://api.github.com/users/emirozer","html_url":"https://github.com/emirozer","followers_url":"https://api.github.com/users/emirozer/followers","following_url":"https://api.github.com/users/emirozer/following{/other_user}","gists_url":"https://api.github.com/users/emirozer/gists{/gist_id}","starred_url":"https://api.github.com/users/emirozer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emirozer/subscriptions","organizations_url":"https://api.github.com/users/emirozer/orgs","repos_url":"https://api.github.com/users/emirozer/repos","events_url":"https://api.github.com/users/emirozer/events{/privacy}","received_events_url":"https://api.github.com/users/emirozer/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T09:08:52Z","updated_at":"2015-12-08T09:08:52Z","body":"Hey Kris,\r\n\r\nThanks for the response !\r\n\r\nWe found a work around thankfully, my use case is simply to get the app's URI information and i assumed after reading this doc: https://github.com/cloudfoundry/cli/blob/master/plugin_examples/DOC.md\r\n\r\nGetApp seems the way to reach that information...\r\nBut yeah unfortunately through any interface in that page one cannot retrieve an app's URI.\r\n\r\nThe workaround we found is:\r\n\r\n    results, err := cliConnection.CliCommandWithoutTerminalOutput(\"app\", appName)"}}