Failed in renaming the installer if the InstallerUrl contains invalid filename characters #2682
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Milestone
Brief description of your issue
After downloading the installer, WinGet will rename it according to the URL.
However, if the URL contains invalid characters such as
*
, the renaming will fail.EDIT: A workaround is to encode these characters in advance when filling in the manifest, and WinGet will not decode them when renaming.
Examples:
microsoft/winget-pkgs#87776
Steps to reproduce
winget install -m .\path\to\the\manifest
to installExpected behavior
Rename the file according to the response header
Content-Disposition
instead of the URL.Actual behavior
Renaming failed and installation stopped.
The following log comes from the validation pipeline. It is the same on my device.
Environment
The text was updated successfully, but these errors were encountered: