{"action":"opened","number":402,"pull_request":{"url":"https://api.github.com/repos/StackStorm/st2-packages/pulls/402","id":99417708,"html_url":"https://github.com/StackStorm/st2-packages/pull/402","diff_url":"https://github.com/StackStorm/st2-packages/pull/402.diff","patch_url":"https://github.com/StackStorm/st2-packages/pull/402.patch","issue_url":"https://api.github.com/repos/StackStorm/st2-packages/issues/402","number":402,"state":"open","locked":false,"title":"corrected to load system locale settings on Ubuntu environment","user":{"login":"userlocalhost","id":469934,"avatar_url":"https://avatars.githubusercontent.com/u/469934?v=3","gravatar_id":"","url":"https://api.github.com/users/userlocalhost","html_url":"https://github.com/userlocalhost","followers_url":"https://api.github.com/users/userlocalhost/followers","following_url":"https://api.github.com/users/userlocalhost/following{/other_user}","gists_url":"https://api.github.com/users/userlocalhost/gists{/gist_id}","starred_url":"https://api.github.com/users/userlocalhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/userlocalhost/subscriptions","organizations_url":"https://api.github.com/users/userlocalhost/orgs","repos_url":"https://api.github.com/users/userlocalhost/repos","events_url":"https://api.github.com/users/userlocalhost/events{/privacy}","received_events_url":"https://api.github.com/users/userlocalhost/received_events","type":"User","site_admin":false},"body":"This is the correction of following issue. \r\nhttps://github.com/StackStorm/st2/issues/3107\r\n\r\nCurrently, we can't execute actions normally when an unicode-format parameter is passed on the environment of Ubuntu Trusty.\r\n\r\nThis is because the st2actionrunner doesn't load the system locale settings.\r\n\r\nA similar problem is reported in here.\r\nhttps://bugs.launchpad.net/mythbuntu/+bug/541042\r\n\r\nThis patch corrects the Upstart configuration file to load system locale settings on the pattern of the above.\r\n\r\nAfter applying this patch, we can execute an action that has unicode arguments on Ubuntu like this.\r\n```\r\nvagrant@st2-node:~$ cat /etc/lsb-release \r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=14.04\r\nDISTRIB_CODENAME=trusty\r\nDISTRIB_DESCRIPTION=\"Ubuntu 14.04.5 LTS\"\r\nvagrant@st2-node:~$ cat /etc/default/locale \r\n# Created by cloud-init v. 0.7.5 on Wed, 14 Dec 2016 02:49:04 +0000\r\nLANG=en_US.UTF-8\r\nvagrant@st2-node:~$ st2 run core.local cmd='locale'\r\n.\r\nid: 58621a346f086f548e43be0b\r\nstatus: succeeded\r\nparameters: \r\n  cmd: locale\r\nresult: \r\n  failed: false\r\n  return_code: 0\r\n  stderr: ''\r\n  stdout: 'LANG=en_US.UTF-8\r\n\r\n    LANGUAGE=\r\n\r\n    LC_CTYPE=\"en_US.UTF-8\"\r\n\r\n    LC_NUMERIC=\"en_US.UTF-8\"\r\n\r\n    LC_TIME=\"en_US.UTF-8\"\r\n\r\n    LC_COLLATE=\"en_US.UTF-8\"\r\n\r\n    LC_MONETARY=\"en_US.UTF-8\"\r\n\r\n    LC_MESSAGES=\"en_US.UTF-8\"\r\n\r\n    LC_PAPER=\"en_US.UTF-8\"\r\n\r\n    LC_NAME=\"en_US.UTF-8\"\r\n\r\n    LC_ADDRESS=\"en_US.UTF-8\"\r\n\r\n    LC_TELEPHONE=\"en_US.UTF-8\"\r\n\r\n    LC_MEASUREMENT=\"en_US.UTF-8\"\r\n\r\n    LC_IDENTIFICATION=\"en_US.UTF-8\"\r\n\r\n    LC_ALL=en_US.UTF-8'\r\n  succeeded: true\r\nvagrant@st2-node:~$ st2 run core.local cmd='echo ｈｏｇｅ'\r\n.\r\nid: 58621a436f086f548e43be0e\r\nstatus: succeeded\r\nparameters: \r\n  cmd: \"echo ｈｏｇｅ\"\r\nresult: \r\n  failed: false\r\n  return_code: 0\r\n  stderr: ''\r\n  stdout: \"ｈｏｇｅ\"\r\n  succeeded: true\r\nvagrant@st2-node:~$ \r\n```","created_at":"2016-12-27T08:17:35Z","updated_at":"2016-12-27T08:17:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/StackStorm/st2-packages/pulls/402/commits","review_comments_url":"https://api.github.com/repos/StackStorm/st2-packages/pulls/402/comments","review_comment_url":"https://api.github.com/repos/StackStorm/st2-packages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StackStorm/st2-packages/issues/402/comments","statuses_url":"https://api.github.com/repos/StackStorm/st2-packages/statuses/ef007c1ee116bc3d537ddd84f9781564ac4744c4","head":{"label":"userlocalhost:bugfix/locale_problem_on_ubuntu","ref":"bugfix/locale_problem_on_ubuntu","sha":"ef007c1ee116bc3d537ddd84f9781564ac4744c4","user":{"login":"userlocalhost","id":469934,"avatar_url":"https://avatars.githubusercontent.com/u/469934?v=3","gravatar_id":"","url":"https://api.github.com/users/userlocalhost","html_url":"https://github.com/userlocalhost","followers_url":"https://api.github.com/users/userlocalhost/followers","following_url":"https://api.github.com/users/userlocalhost/following{/other_user}","gists_url":"https://api.github.com/users/userlocalhost/gists{/gist_id}","starred_url":"https://api.github.com/users/userlocalhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/userlocalhost/subscriptions","organizations_url":"https://api.github.com/users/userlocalhost/orgs","repos_url":"https://api.github.com/users/userlocalhost/repos","events_url":"https://api.github.com/users/userlocalhost/events{/privacy}","received_events_url":"https://api.github.com/users/userlocalhost/received_events","type":"User","site_admin":false},"repo":{"id":77422442,"name":"st2-packages","full_name":"userlocalhost/st2-packages","owner":{"login":"userlocalhost","id":469934,"avatar_url":"https://avatars.githubusercontent.com/u/469934?v=3","gravatar_id":"","url":"https://api.github.com/users/userlocalhost","html_url":"https://github.com/userlocalhost","followers_url":"https://api.github.com/users/userlocalhost/followers","following_url":"https://api.github.com/users/userlocalhost/following{/other_user}","gists_url":"https://api.github.com/users/userlocalhost/gists{/gist_id}","starred_url":"https://api.github.com/users/userlocalhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/userlocalhost/subscriptions","organizations_url":"https://api.github.com/users/userlocalhost/orgs","repos_url":"https://api.github.com/users/userlocalhost/repos","events_url":"https://api.github.com/users/userlocalhost/events{/privacy}","received_events_url":"https://api.github.com/users/userlocalhost/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/userlocalhost/st2-packages","description":"StackStorm packages (automated docker build pipeline)","fork":true,"url":"https://api.github.com/repos/userlocalhost/st2-packages","forks_url":"https://api.github.com/repos/userlocalhost/st2-packages/forks","keys_url":"https://api.github.com/repos/userlocalhost/st2-packages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/userlocalhost/st2-packages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/userlocalhost/st2-packages/teams","hooks_url":"https://api.github.com/repos/userlocalhost/st2-packages/hooks","issue_events_url":"https://api.github.com/repos/userlocalhost/st2-packages/issues/events{/number}","events_url":"https://api.github.com/repos/userlocalhost/st2-packages/events","assignees_url":"https://api.github.com/repos/userlocalhost/st2-packages/assignees{/user}","branches_url":"https://api.github.com/repos/userlocalhost/st2-packages/branches{/branch}","tags_url":"https://api.github.com/repos/userlocalhost/st2-packages/tags","blobs_url":"https://api.github.com/repos/userlocalhost/st2-packages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/userlocalhost/st2-packages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/userlocalhost/st2-packages/git/refs{/sha}","trees_url":"https://api.github.com/repos/userlocalhost/st2-packages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/userlocalhost/st2-packages/statuses/{sha}","languages_url":"https://api.github.com/repos/userlocalhost/st2-packages/languages","stargazers_url":"https://api.github.com/repos/userlocalhost/st2-packages/stargazers","contributors_url":"https://api.github.com/repos/userlocalhost/st2-packages/contributors","subscribers_url":"https://api.github.com/repos/userlocalhost/st2-packages/subscribers","subscription_url":"https://api.github.com/repos/userlocalhost/st2-packages/subscription","commits_url":"https://api.github.com/repos/userlocalhost/st2-packages/commits{/sha}","git_commits_url":"https://api.github.com/repos/userlocalhost/st2-packages/git/commits{/sha}","comments_url":"https://api.github.com/repos/userlocalhost/st2-packages/comments{/number}","issue_comment_url":"https://api.github.com/repos/userlocalhost/st2-packages/issues/comments{/number}","contents_url":"https://api.github.com/repos/userlocalhost/st2-packages/contents/{+path}","compare_url":"https://api.github.com/repos/userlocalhost/st2-packages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/userlocalhost/st2-packages/merges","archive_url":"https://api.github.com/repos/userlocalhost/st2-packages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/userlocalhost/st2-packages/downloads","issues_url":"https://api.github.com/repos/userlocalhost/st2-packages/issues{/number}","pulls_url":"https://api.github.com/repos/userlocalhost/st2-packages/pulls{/number}","milestones_url":"https://api.github.com/repos/userlocalhost/st2-packages/milestones{/number}","notifications_url":"https://api.github.com/repos/userlocalhost/st2-packages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/userlocalhost/st2-packages/labels{/name}","releases_url":"https://api.github.com/repos/userlocalhost/st2-packages/releases{/id}","deployments_url":"https://api.github.com/repos/userlocalhost/st2-packages/deployments","created_at":"2016-12-27T03:20:06Z","updated_at":"2016-12-27T03:20:09Z","pushed_at":"2016-12-27T08:05:44Z","git_url":"git://github.com/userlocalhost/st2-packages.git","ssh_url":"git@github.com:userlocalhost/st2-packages.git","clone_url":"https://github.com/userlocalhost/st2-packages.git","svn_url":"https://github.com/userlocalhost/st2-packages","homepage":"https://stackstorm.com/","size":1101,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"StackStorm:master","ref":"master","sha":"7d8bcbfbdc9ff4ef22382c8f884242a7683a7818","user":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"repo":{"id":38112294,"name":"st2-packages","full_name":"StackStorm/st2-packages","owner":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackStorm/st2-packages","description":"StackStorm packages (automated docker build pipeline)","fork":false,"url":"https://api.github.com/repos/StackStorm/st2-packages","forks_url":"https://api.github.com/repos/StackStorm/st2-packages/forks","keys_url":"https://api.github.com/repos/StackStorm/st2-packages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackStorm/st2-packages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackStorm/st2-packages/teams","hooks_url":"https://api.github.com/repos/StackStorm/st2-packages/hooks","issue_events_url":"https://api.github.com/repos/StackStorm/st2-packages/issues/events{/number}","events_url":"https://api.github.com/repos/StackStorm/st2-packages/events","assignees_url":"https://api.github.com/repos/StackStorm/st2-packages/assignees{/user}","branches_url":"https://api.github.com/repos/StackStorm/st2-packages/branches{/branch}","tags_url":"https://api.github.com/repos/StackStorm/st2-packages/tags","blobs_url":"https://api.github.com/repos/StackStorm/st2-packages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackStorm/st2-packages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackStorm/st2-packages/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackStorm/st2-packages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackStorm/st2-packages/statuses/{sha}","languages_url":"https://api.github.com/repos/StackStorm/st2-packages/languages","stargazers_url":"https://api.github.com/repos/StackStorm/st2-packages/stargazers","contributors_url":"https://api.github.com/repos/StackStorm/st2-packages/contributors","subscribers_url":"https://api.github.com/repos/StackStorm/st2-packages/subscribers","subscription_url":"https://api.github.com/repos/StackStorm/st2-packages/subscription","commits_url":"https://api.github.com/repos/StackStorm/st2-packages/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackStorm/st2-packages/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackStorm/st2-packages/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackStorm/st2-packages/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackStorm/st2-packages/contents/{+path}","compare_url":"https://api.github.com/repos/StackStorm/st2-packages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackStorm/st2-packages/merges","archive_url":"https://api.github.com/repos/StackStorm/st2-packages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackStorm/st2-packages/downloads","issues_url":"https://api.github.com/repos/StackStorm/st2-packages/issues{/number}","pulls_url":"https://api.github.com/repos/StackStorm/st2-packages/pulls{/number}","milestones_url":"https://api.github.com/repos/StackStorm/st2-packages/milestones{/number}","notifications_url":"https://api.github.com/repos/StackStorm/st2-packages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackStorm/st2-packages/labels{/name}","releases_url":"https://api.github.com/repos/StackStorm/st2-packages/releases{/id}","deployments_url":"https://api.github.com/repos/StackStorm/st2-packages/deployments","created_at":"2015-06-26T13:20:51Z","updated_at":"2016-11-03T22:31:18Z","pushed_at":"2016-12-23T23:43:03Z","git_url":"git://github.com/StackStorm/st2-packages.git","ssh_url":"git@github.com:StackStorm/st2-packages.git","clone_url":"https://github.com/StackStorm/st2-packages.git","svn_url":"https://github.com/StackStorm/st2-packages","homepage":"https://stackstorm.com/","size":1101,"stargazers_count":5,"watchers_count":5,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":42,"forks":25,"open_issues":42,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2-packages/pulls/402"},"html":{"href":"https://github.com/StackStorm/st2-packages/pull/402"},"issue":{"href":"https://api.github.com/repos/StackStorm/st2-packages/issues/402"},"comments":{"href":"https://api.github.com/repos/StackStorm/st2-packages/issues/402/comments"},"review_comments":{"href":"https://api.github.com/repos/StackStorm/st2-packages/pulls/402/comments"},"review_comment":{"href":"https://api.github.com/repos/StackStorm/st2-packages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StackStorm/st2-packages/pulls/402/commits"},"statuses":{"href":"https://api.github.com/repos/StackStorm/st2-packages/statuses/ef007c1ee116bc3d537ddd84f9781564ac4744c4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":4,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"userlocalhost"}}