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

Deserializing failures on package info files should not fail the choco run #1328

Closed
ferventcoder opened this issue Jun 7, 2017 · 1 comment

Comments

@ferventcoder
Copy link
Member

When deserializing package files file, rarely you may run into this:

Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles:
 '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
@ferventcoder
Copy link
Member Author

@ferventcoder ferventcoder changed the title Deserializing failures with Package information should not fail the choco run Deserializing failures on package info files should not fail the choco run Jun 8, 2017
ferventcoder added a commit that referenced this issue Jun 8, 2017
Instead of defaulting to errorrs, silently have those warnings come up.
When installing the package, if the save of the files snapshot fails,
log a warning but allow the install to be successful.

This corrects seeing these kinds of errors:

~~~
Error deserializing response of type
chocolatey.infrastructure.app.domain.PackageFiles:
 '.', hexadecimal value 0x00, is an invalid character. Line 1, position
1.
~~~
ferventcoder added a commit that referenced this issue Jun 8, 2017
* stable:
  (version) 0.10.7
  (doc) update CHANGELOG/nuspec
  (GH-1328) Serialize/deserialize package files warnings
  (maint) clean up install/uninstall template
  (GH-1330) Use $packageArgs in default uninstall script
  (GH-1323) File/File64 as params not aliases
  (GH-1324) requestedExecutionLevel = asInvoker
  (GH-1327) AutoUninstaller - split multiple file paths
  (maint) add parameter props to UseOriginalLocation
  (maint) formatting
  (GH-1323) rename file to downloadFilePath
  (GH-1325) List/Search - no fail on local directory
  (docs) add to PowerShell CONTRIBUTING
  (GH-1326) Always show heading
  (GH-976) Use Write-FunctionCallLogMessage
  (maint) formatting
  (GH-1322) Fix: search - exact ignores page/page-size
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