{"action":"created","issue":{"url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/547","repository_url":"https://api.github.com/repos/platformsh/platformsh-cli","labels_url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/547/comments","events_url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/547/events","html_url":"https://github.com/platformsh/platformsh-cli/issues/547","id":191665470,"number":547,"title":"Unhandeled AccessDeniedException ","user":{"login":"mrkschan","id":118147,"avatar_url":"https://avatars.githubusercontent.com/u/118147?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkschan","html_url":"https://github.com/mrkschan","followers_url":"https://api.github.com/users/mrkschan/followers","following_url":"https://api.github.com/users/mrkschan/following{/other_user}","gists_url":"https://api.github.com/users/mrkschan/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkschan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkschan/subscriptions","organizations_url":"https://api.github.com/users/mrkschan/orgs","repos_url":"https://api.github.com/users/mrkschan/repos","events_url":"https://api.github.com/users/mrkschan/events{/privacy}","received_events_url":"https://api.github.com/users/mrkschan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-25T10:03:57Z","updated_at":"2016-12-16T12:44:11Z","closed_at":"2016-12-16T12:44:11Z","body":"CLI version 3.8.1\r\n\r\n```\r\nplatform environment:sql \"SHOW VARIABLES\"\r\n\r\n[AccessDeniedException]\r\nRecursiveDirectoryIterator::__construct(/path/to/dir/subdir): failed to open dir: Permission denied\r\n\r\n\r\n[UnexpectedValueException]\r\nRecursiveDirectoryIterator::__construct(/path/to/dir/subdir): failed to open dir: Permission denied\r\n\r\nUsage: platform db:sql [-p|--project PROJECT] [--host HOST] [-e|--environment ENVIRONMENT] [-A|--app APP] [--] [<query>]\r\n\r\nFor more information, type: platform help db:sql\r\n\r\n```\r\n\r\nThe directory causing the exception is a subdirectory of the working directory.\r\n\r\nNote, issue does not occur when used with -A option.\r\n\r\n(Details in support ticket 12612)"},"comment":{"url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/comments/267586706","html_url":"https://github.com/platformsh/platformsh-cli/issues/547#issuecomment-267586706","issue_url":"https://api.github.com/repos/platformsh/platformsh-cli/issues/547","id":267586706,"user":{"login":"pjcdawkins","id":1465106,"avatar_url":"https://avatars.githubusercontent.com/u/1465106?v=3","gravatar_id":"","url":"https://api.github.com/users/pjcdawkins","html_url":"https://github.com/pjcdawkins","followers_url":"https://api.github.com/users/pjcdawkins/followers","following_url":"https://api.github.com/users/pjcdawkins/following{/other_user}","gists_url":"https://api.github.com/users/pjcdawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/pjcdawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjcdawkins/subscriptions","organizations_url":"https://api.github.com/users/pjcdawkins/orgs","repos_url":"https://api.github.com/users/pjcdawkins/repos","events_url":"https://api.github.com/users/pjcdawkins/events{/privacy}","received_events_url":"https://api.github.com/users/pjcdawkins/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T12:44:11Z","updated_at":"2016-12-16T12:44:11Z","body":"The commit above is in version [3.9.0](https://github.com/platformsh/platformsh-cli/releases/tag/v3.9.0) and should resolve the issue"}}
{"actor":{"display_login":"pjcdawkins"}}