Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Get-FileName in PowerShell 5 fails and sometimes causes package errors #603

Closed
ferventcoder opened this issue Feb 2, 2016 · 0 comments

Comments

@ferventcoder
Copy link
Member

When the following happens:

2016-02-02 17:24:30,218 [DEBUG] - Running 'Get-FileName' to determine name with url:'http://www.7-zip.org/a/7z1514-x64.exe', defaultName:'7zip.commandlineInstall.zip'
2016-02-02 17:24:30,294 [DEBUG] - Url request/response failed - file name will be '7zip.commandlineInstall.zip'

It causes things to fail.

@ferventcoder ferventcoder self-assigned this Feb 2, 2016
@ferventcoder ferventcoder added this to the 0.9.10 milestone Feb 2, 2016
ferventcoder added a commit to ferventcoder/choco that referenced this issue Feb 4, 2016
As the other two web calls check/use proxy and network credentials,
Get-FileName should also use a proxy if required.
ferventcoder added a commit to ferventcoder/choco that referenced this issue Feb 4, 2016
* stable:
  (chocolateyGH-603) Get-FileName should set proxy if required
  (chocolateyGH-611) Fix - Verbose shows up on Debug
  (chocolateyGH-8) Always set Debug/Verbose for host
ferventcoder added a commit that referenced this issue Feb 4, 2016
When running Get-FileName, if HttpWebResponse is not fully qualified,
PowerShell 5 will not know how to find it. It's better to fully qualify
classes, so fix that to be correct.

Also pass along the actual error when it occurs.
ferventcoder added a commit that referenced this issue Feb 4, 2016
* stable:
  (GH-604) Source Operations Should Respect Quiet
  (GH-603) Fix - Get-FileName errors sometimes
@ferventcoder ferventcoder changed the title Running Get-FileName sometimes fails and causes errors Running Get-FileName in PowerShell 5 failes and sometimes causes package errors Feb 5, 2016
@ferventcoder ferventcoder changed the title Running Get-FileName in PowerShell 5 failes and sometimes causes package errors Running Get-FileName in PowerShell 5 fails and sometimes causes package errors Mar 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants