{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/794","repository_url":"https://api.github.com/repos/cloudfoundry/cli","labels_url":"https://api.github.com/repos/cloudfoundry/cli/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/cli/issues/794/comments","events_url":"https://api.github.com/repos/cloudfoundry/cli/issues/794/events","html_url":"https://github.com/cloudfoundry/cli/issues/794","id":140068537,"number":794,"title":"Ampersand char within cf service-key return value unexpectedly displaying as \\u0026 ","user":{"login":"joshisa","id":1133849,"avatar_url":"https://avatars.githubusercontent.com/u/1133849?v=3","gravatar_id":"","url":"https://api.github.com/users/joshisa","html_url":"https://github.com/joshisa","followers_url":"https://api.github.com/users/joshisa/followers","following_url":"https://api.github.com/users/joshisa/following{/other_user}","gists_url":"https://api.github.com/users/joshisa/gists{/gist_id}","starred_url":"https://api.github.com/users/joshisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshisa/subscriptions","organizations_url":"https://api.github.com/users/joshisa/orgs","repos_url":"https://api.github.com/users/joshisa/repos","events_url":"https://api.github.com/users/joshisa/events{/privacy}","received_events_url":"https://api.github.com/users/joshisa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-11T02:31:55Z","updated_at":"2016-05-19T15:18:58Z","closed_at":null,"body":"### Command\r\n```cf service-key <objectstorageinstance> <service-keys-credential-name>```\r\n\r\n### CLI Version\r\n6.16.1+924508c-2016-02-26\r\n\r\n### Error\r\nCommand returns JSON value similar to:\r\n\r\n```\r\nGetting key <service-keys-credential-name> for service instance <objectstorageinstance> as joshisa@us.ibm.com...\r\n\r\n{\r\n \"auth_url\": \"https://identity.open.softlayer.com\",\r\n \"domainId\": \"some_hex_value\",\r\n \"domainName\": \"853255\",\r\n \"password\": \"Xj\\u00262ir1TKoW-]Jf\\u0026\",\r\n \"project\": \"object_storage_more_hex_chars\",\r\n \"projectId\": \"hex_value_palooza\",\r\n \"region\": \"dallas\",\r\n \"userId\": \"one_more_hex_value\",\r\n \"username\": \"Admin_hex_value_for_the_road\"\r\n}\r\n```\r\n\r\n**The password field incorrectly displays the unicode representation of the Ampersand char as \\u0026**\r\nIf this returned value is used literally, the python openstack swift client authentication fails.  The correct password string should be represented as \"Xj&2ir1TKoW-]Jf&\"\r\n\r\n### Platform Details\r\n\r\nMac OS X 10.11.3\r\n\r\n### Shell\r\n\r\niTerm\r\n"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/comments/220357500","html_url":"https://github.com/cloudfoundry/cli/issues/794#issuecomment-220357500","issue_url":"https://api.github.com/repos/cloudfoundry/cli/issues/794","id":220357500,"user":{"login":"SocalNick","id":294123,"avatar_url":"https://avatars.githubusercontent.com/u/294123?v=3","gravatar_id":"","url":"https://api.github.com/users/SocalNick","html_url":"https://github.com/SocalNick","followers_url":"https://api.github.com/users/SocalNick/followers","following_url":"https://api.github.com/users/SocalNick/following{/other_user}","gists_url":"https://api.github.com/users/SocalNick/gists{/gist_id}","starred_url":"https://api.github.com/users/SocalNick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SocalNick/subscriptions","organizations_url":"https://api.github.com/users/SocalNick/orgs","repos_url":"https://api.github.com/users/SocalNick/repos","events_url":"https://api.github.com/users/SocalNick/events{/privacy}","received_events_url":"https://api.github.com/users/SocalNick/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T15:18:58Z","updated_at":"2016-05-19T15:18:58Z","body":"Hi @joshisa,\r\n\r\nCould you check what the API returns by doing `cf curl /v2/service_keys/:guid` and report back the results? If the Cloud Controller is incorrectly escaping, we can open an issue in our end. \r\n\r\nNick"}}