{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/windows/issues/379","repository_url":"https://api.github.com/repos/chef-cookbooks/windows","labels_url":"https://api.github.com/repos/chef-cookbooks/windows/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/windows/issues/379/comments","events_url":"https://api.github.com/repos/chef-cookbooks/windows/issues/379/events","html_url":"https://github.com/chef-cookbooks/windows/issues/379","id":165581910,"number":379,"title":"windows_http_acl does not work on non-English Windows","user":{"login":"maltewitt","id":18399337,"avatar_url":"https://avatars.githubusercontent.com/u/18399337?v=3","gravatar_id":"","url":"https://api.github.com/users/maltewitt","html_url":"https://github.com/maltewitt","followers_url":"https://api.github.com/users/maltewitt/followers","following_url":"https://api.github.com/users/maltewitt/following{/other_user}","gists_url":"https://api.github.com/users/maltewitt/gists{/gist_id}","starred_url":"https://api.github.com/users/maltewitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maltewitt/subscriptions","organizations_url":"https://api.github.com/users/maltewitt/orgs","repos_url":"https://api.github.com/users/maltewitt/repos","events_url":"https://api.github.com/users/maltewitt/events{/privacy}","received_events_url":"https://api.github.com/users/maltewitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-14T14:55:48Z","updated_at":"2016-07-21T14:30:11Z","closed_at":null,"body":"### Cookbook version\r\n1.39.2\r\n### Chef-client version\r\n12.9.38\r\n### Platform Details\r\nWindows 7 Enterprise (German)\r\n\r\n### Scenario:\r\nWhen trying to use the windows_http_acl resource, it fails while checking if the requested URL is already registered. \r\nThis works fine, if I use an English Windows or an English language pack and switch language to English for the current user.\r\n\r\n### Steps to Reproduce:\r\nInstall some non-English language pack (i.e. German) and switch current users language settings to that language. Try running a recipe with windows_http_acl resource used.\r\n```\r\nwindows_http_acl \"http://+:#{node[:cp_suite_drop][:airport]}/\" do\r\n\tuser \"Jeder\"\r\nend\r\n```\r\n\r\n### Expected Result:\r\nwindows_http_acl should not fail, but successfully register the requested URL\r\n\r\n### Actual Result:\r\nGenerated at 2016-07-14 16:52:25 +0200\r\nMixlib::ShellOut::ShellCommandFailed: windows_http_acl[http://+:8086/] (cp_suite_drop::zip line 60) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'\r\n---- Begin output of C:\\Windows\\system32\\netsh.exe http add urlacl url=http://+:8086/ user=\"Jeder\" ----\r\nSTDOUT: Die URL-Reservierung konnte nicht hinzugefgt werden. Fehler: 183\r\n\r\nEine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist.\r\nSTDERR: \r\n---- End output of C:\\Windows\\system32\\netsh.exe http add urlacl url=http://+:8086/ user=\"Jeder\" ----\r\n"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/windows/issues/comments/234271454","html_url":"https://github.com/chef-cookbooks/windows/issues/379#issuecomment-234271454","issue_url":"https://api.github.com/repos/chef-cookbooks/windows/issues/379","id":234271454,"user":{"login":"maltewitt","id":18399337,"avatar_url":"https://avatars.githubusercontent.com/u/18399337?v=3","gravatar_id":"","url":"https://api.github.com/users/maltewitt","html_url":"https://github.com/maltewitt","followers_url":"https://api.github.com/users/maltewitt/followers","following_url":"https://api.github.com/users/maltewitt/following{/other_user}","gists_url":"https://api.github.com/users/maltewitt/gists{/gist_id}","starred_url":"https://api.github.com/users/maltewitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maltewitt/subscriptions","organizations_url":"https://api.github.com/users/maltewitt/orgs","repos_url":"https://api.github.com/users/maltewitt/repos","events_url":"https://api.github.com/users/maltewitt/events{/privacy}","received_events_url":"https://api.github.com/users/maltewitt/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T14:30:11Z","updated_at":"2016-07-21T14:30:11Z","body":"To get around this issue in my case I put the http_acl stuff into a new cookbook and wrote a library for getting current urlacl using Windows-API via FFI. \r\nOf course I would be willing to share that code, but I am not sure if windows cookbook wants to depend on ffi gem...  Let me know if you are interested in my solution."}}
{"actor":{"display_login":"maltewitt"}}