{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/choco/issues/753","repository_url":"https://api.github.com/repos/chocolatey/choco","labels_url":"https://api.github.com/repos/chocolatey/choco/issues/753/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/choco/issues/753/comments","events_url":"https://api.github.com/repos/chocolatey/choco/issues/753/events","html_url":"https://github.com/chocolatey/choco/issues/753","id":157306940,"number":753,"title":"Get-WebFileName causes package to fail when using dropbox URLs","user":{"login":"dtgm","id":3309431,"avatar_url":"https://avatars.githubusercontent.com/u/3309431?v=3","gravatar_id":"","url":"https://api.github.com/users/dtgm","html_url":"https://github.com/dtgm","followers_url":"https://api.github.com/users/dtgm/followers","following_url":"https://api.github.com/users/dtgm/following{/other_user}","gists_url":"https://api.github.com/users/dtgm/gists{/gist_id}","starred_url":"https://api.github.com/users/dtgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtgm/subscriptions","organizations_url":"https://api.github.com/users/dtgm/orgs","repos_url":"https://api.github.com/users/dtgm/repos","events_url":"https://api.github.com/users/dtgm/events{/privacy}","received_events_url":"https://api.github.com/users/dtgm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-27T23:27:42Z","updated_at":"2016-05-27T23:33:12Z","closed_at":null,"body":"### What You Are Seeing?\r\n\r\nInstall-Chocolatey(Zip)Package.ps1 sets switch `-getOriginalFileName` when calling Get-ChocolateyWebFile.ps1 so this code gets executed\r\n\r\nhttps://github.com/chocolatey/choco/blob/master/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1#128\r\n\r\nAnd then `Get-WebFileName` which fails when trying to set filename for `https://dl.dropboxusercontent.com/u/..../somefile.zip`\r\n\r\nI verified the issue is at least in that block by removing `-getOriginalFileName` parameter from https://github.com/chocolatey/choco/blob/master/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1#L103\r\n\r\n### How Did You Get This To Happen? (Steps to Reproduce)\r\n\r\n`choco install suwatchapp -ydv`\r\n\r\nPackages affected `colordesker`, `deskpins`, `suwatchapp`:\r\n```\r\nColorDesker.2.2.611.1122/tools/chocolateyInstall.ps1:﻿Install-ChocolateyPackage \"ColorDesker\" \"exe\" \"/silent\" \"https://dl.dropboxusercontent.com/u/36711/ColorDeskerSetup.exe\" -validExitCodes @(0)\r\nColorDesker.2.2.611.1122/tools/install.ps1:﻿Install-ChocolateyPackage \"ColorDesker\" \"exe\" \"/silent\" \"https://dl.dropboxusercontent.com/u/36711/ColorDeskerSetup.exe\" -validExitCodes @(0)\r\ndeskpins.1.32/tools/chocolateyInstall.ps1:$url = 'https://dl.dropboxusercontent.com/u/3885603/releases/DeskPins-1.32-setup.exe'\r\nsuwatchapp.0.1.0.0/tools/chocolateyInstall.ps1:  Install-ChocolateyZipPackage 'suwatchapp' 'https://dl.dropboxusercontent.com/u/109652660/MiscTools.zip' \"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\"\r\n```\r\n### Output Log\r\n\r\n```\r\nRunning licensed 'Get-WebFileName' with url:'https://dl.dropboxusercontent.com/u/109652660/MiscTools.zip', defaultName:'suwatchappInstall.zip' userAgent:'chocolatey command line'\r\nSetting the UserAgent to 'chocolatey command line'\r\nUsing header 'Content-Disposition' (inline; filename=\"MiscTools.zip\"; filename*=UTF-8''MiscTools.zip) to determine file name.\r\nFile name determined from url is 'MiscTools.zip; filename*=UTF-8''MiscTools.zip'\r\nAttempt to use original download file name failed for 'https://dl.dropboxusercontent.com/u/109652660/MiscTools.zip'.\r\nRunning licensed 'Get-WebHeaders' with url:'https://dl.dropboxusercontent.com/u/109652660/MiscTools.zip', userAgent:'chocolatey command line'\r\n```\r\nhttps://gist.github.com/dtgm/a67a74d9c2a150dd1cc126ac8c71912c#file-cinst-suwatchapp-ydv-log-L261-L263"},"comment":{"url":"https://api.github.com/repos/chocolatey/choco/issues/comments/222274642","html_url":"https://github.com/chocolatey/choco/issues/753#issuecomment-222274642","issue_url":"https://api.github.com/repos/chocolatey/choco/issues/753","id":222274642,"user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T23:33:11Z","updated_at":"2016-05-27T23:33:11Z","body":"@dtgm two things - I need to know what version of choco and what version of choco licensed"}}
{"actor":{"display_login":"ferventcoder"}}