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

Illegal characters in path #857

Closed
aronovgj opened this issue Jul 9, 2016 · 3 comments
Closed

Illegal characters in path #857

aronovgj opened this issue Jul 9, 2016 · 3 comments
Assignees
Milestone

Comments

@aronovgj
Copy link

aronovgj commented Jul 9, 2016

When using autouninstaller I get this error with chocolatey 0.9.10.3

https://gist.github.com/aronovgj/2632b60b24f30c5736076523c3f69e2b

@ferventcoder ferventcoder added this to the 0.9.10.4 milestone Jul 10, 2016
@ferventcoder
Copy link
Member

Not AutoUninstaller in this case. It's in the PowerShell helpers.

@ferventcoder ferventcoder self-assigned this Jul 10, 2016
@ferventcoder
Copy link
Member

ferventcoder commented Jul 10, 2016

In this case it looks like it did not remove the double quotes surrounding the path.

@ferventcoder
Copy link
Member

Likely this is related to a null character that is not showing up.

ferventcoder added a commit that referenced this issue Jul 24, 2016
When values coming from the registry are not cleansed prior to being
passed to Start-ChocolateyProcessAsAdmin, they sometimes can contain
null characters. Remove those characters in the helper.

Further, if attempting to get the full path for looking to see if the
file is a text file instead of an executable, do not fail the run.
ferventcoder added a commit that referenced this issue Jul 24, 2016
* stable:
  (maint) Skip log PowerShell resource assembly failures
  (GH-871) Fix - Uninstall zip: Path is empty string
  (maint) remove unused import
  (GH-854) Reset Exit Code between package runs
  (GH-852) Bump up the default log sizes
  (GH-867) NuGet.Core Errors Exit Code 1
  (GH-853) Handle null values better
  (GH-836) Fix - Use 32 bit 7zip
  (GH-847) Tab Completion Enhancements
  (GH-857) Fix - Sometimes paths contain null chars
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

3 participants