{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/636","repository_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages","labels_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/636/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/636/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/636/events","html_url":"https://github.com/chocolatey/chocolatey-coreteampackages/issues/636","id":215112439,"number":636,"title":"(core.extension) Path gets cut into half when parsing","user":{"login":"Schroedingers-Cat","id":6382400,"avatar_url":"https://avatars2.githubusercontent.com/u/6382400?v=3","gravatar_id":"","url":"https://api.github.com/users/Schroedingers-Cat","html_url":"https://github.com/Schroedingers-Cat","followers_url":"https://api.github.com/users/Schroedingers-Cat/followers","following_url":"https://api.github.com/users/Schroedingers-Cat/following{/other_user}","gists_url":"https://api.github.com/users/Schroedingers-Cat/gists{/gist_id}","starred_url":"https://api.github.com/users/Schroedingers-Cat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schroedingers-Cat/subscriptions","organizations_url":"https://api.github.com/users/Schroedingers-Cat/orgs","repos_url":"https://api.github.com/users/Schroedingers-Cat/repos","events_url":"https://api.github.com/users/Schroedingers-Cat/events{/privacy}","received_events_url":"https://api.github.com/users/Schroedingers-Cat/received_events","type":"User","site_admin":false},"labels":[{"id":143704693,"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/labels/3%20-%20Done","name":"3 - Done","color":"CCCCCC","default":false},{"id":30489700,"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/labels/Bug","name":"Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-03-17T20:22:16Z","updated_at":"2017-03-20T14:58:06Z","closed_at":null,"body":"I'm creating a chocolatey package with an optional parameter to change the installation path. Because the installer itself has no support for that, I'm parsing the path as a PackageParameter and put it into the registry, where the installer gets it's default path from. However, when parsing the path, I run into an issue where the path seems to correctly get into my script, but nevertheless is stored wrong into the PackageParameter-Hastable. \r\n\r\nHere is the [log of my package.](https://gist.github.com/Schroedingers-Cat/a32268c7bc00a35d7cf1f86e1ffd28ac)\r\nAt [line 1](https://gist.github.com/Schroedingers-Cat/a32268c7bc00a35d7cf1f86e1ffd28ac#file-powersh-L1), you can see I'm using the correct quoting pattern of parsing paths with spaces.\r\nAt [line 5](https://gist.github.com/Schroedingers-Cat/a32268c7bc00a35d7cf1f86e1ffd28ac#file-powersh-L5) you can see that the path survived with full quotes. The same thing with [line 24.](https://gist.github.com/Schroedingers-Cat/a32268c7bc00a35d7cf1f86e1ffd28ac#file-powersh-L24)\r\n\r\nHowever, when accessing the resulting PackageParameter variable, the [path got cut into half.](https://gist.github.com/Schroedingers-Cat/a32268c7bc00a35d7cf1f86e1ffd28ac#file-powersh-L186-L187)\r\n\r\nI have [discussed this at the chocolatey google groups](https://groups.google.com/d/msgid/chocolatey/9d8fec95-f404-438c-a244-dc2e875ca6c9%40googlegroups.com) with Rob and he told me it's likely a bug and asked me to report hit here."},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/comments/287785355","html_url":"https://github.com/chocolatey/chocolatey-coreteampackages/issues/636#issuecomment-287785355","issue_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/636","id":287785355,"user":{"login":"Schroedingers-Cat","id":6382400,"avatar_url":"https://avatars2.githubusercontent.com/u/6382400?v=3","gravatar_id":"","url":"https://api.github.com/users/Schroedingers-Cat","html_url":"https://github.com/Schroedingers-Cat","followers_url":"https://api.github.com/users/Schroedingers-Cat/followers","following_url":"https://api.github.com/users/Schroedingers-Cat/following{/other_user}","gists_url":"https://api.github.com/users/Schroedingers-Cat/gists{/gist_id}","starred_url":"https://api.github.com/users/Schroedingers-Cat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schroedingers-Cat/subscriptions","organizations_url":"https://api.github.com/users/Schroedingers-Cat/orgs","repos_url":"https://api.github.com/users/Schroedingers-Cat/repos","events_url":"https://api.github.com/users/Schroedingers-Cat/events{/privacy}","received_events_url":"https://api.github.com/users/Schroedingers-Cat/received_events","type":"User","site_admin":false},"created_at":"2017-03-20T14:58:06Z","updated_at":"2017-03-20T14:58:06Z","body":"That sounds great!\r\n\r\nIf you want, I could test it before. Just tell me what I have to do so it's on my chocolatey installation."}}
{"actor":{"display_login":"Schroedingers-Cat"}}