microsoft / microsoft/winget-create

cannot find https://github.com/microsoft/XmlNotepad/releases/download/2.9.0.17/XmlNotepadPackage_2.9.0.17_AnyCPU.msixbundle

Open
#635 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C#
Stars
651
Forks
114
Avg merge
7h 52m
Merged PRs (30d)
3

Description

Brief description of your issue

I used to be able to run this command line:

wingetcreate update Microsoft.XMLNotepad --version %VERSION% -o %WINGET_SRC% -u https://github.com/microsoft/XmlNotepad/releases/download/2.9.0.17/XmlNotepadPackage_2.9.0.17_AnyCPU.msixbundle

curl -O --location ... can find and download this url no problem, but now I get this error:

System.IO.FileNotFoundException: The system cannot find the file specified. (0x80070002)

Is it no longer able to follow redirects? Can you fix this? Weirdly, I get the same error on the fully expanded redirected URL also....

Stack trace:

System.IO.FileNotFoundException: The system cannot find the file specified. (0x80070002)
   at Microsoft.Msix.Utils.AppxPackagingInterop.IAppxBundleReader.GetFootprintFile(APPX_BUNDLE_FOOTPRINT_FILE_TYPE fileType)
   at Microsoft.WingetCreateCore.PackageParser.GetAppxMetadataAndSetInstallerProperties(String path, InstallerManifest installerManifest, Installer baseInstaller, List`1 installers)
   at Microsoft.WingetCreateCore.PackageParser.ParseMsix(String path, Installer baseInstaller, Manifests manifests, List`1 newInstallers)
   at Microsoft.WingetCreateCore.PackageParser.ParsePackageAndGenerateInstallerNodes(InstallerMetadata installerMetadata, Manifests manifests)
   at Microsoft.WingetCreateCore.PackageParser.ParsePackage(InstallerMetadata installerMetadata, Manifests manifests)
   at Microsoft.WingetCreateCore.PackageParser.ParsePackages(List`1 installerMetadataList, Manifests manifests)
   at Microsoft.WingetCreateCLI.Commands.NewCommand.Execute()
   at Microsoft.WingetCreateCLI.Program.Main(String[] args)
Steps to reproduce
wingetcreate update Microsoft.XMLNotepad --version %VERSION% -o %WINGET_SRC% -u https://github.com/microsoft/XmlNotepad/releases/download/2.9.0.17/XmlNotepadPackage_2.9.0.17_AnyCPU.msixbundle
Expected behavior

Used to work fine.

Actual behavior

System.IO.FileNotFoundException: The system cannot find the file specified. (0x80070002)

Environment
Windows Package Manager Manifest Creator v1.10.3.0
Copyright (c) Microsoft Corporation. All rights reserved.

Operating System: Microsoft Windows NT 10.0.26100.0
System Architecture: X64

Winget-Create Directories  Path                                                                                         
------------------------------------------------------------------------------------------------------------------------------------------
Logs                       %LOCALAPPDATA%\Packages\Microsoft.WindowsPackageManagerManifestCreator_8wekyb3d8bbwe\LocalState\DiagOutputDir
User settings              %LOCALAPPDATA%\Packages\Microsoft.WindowsPackageManagerManifestCreator_8wekyb3d8bbwe\LocalState\settings.json
Installer cache            %TEMP%\wingetcreate                                                                          

Links
------------------------------------------------------------------
Privacy Statement    https://aka.ms/winget-create-privacy
License Agreement    https://aka.ms/winget-create-license
Third Party Notices  https://aka.ms/winget-create-3rdPartyNotice
Homepage             https://aka.ms/winget-create

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the PackageParser.ParseMsix and GetAppxMetadataAndSetInstallerProperties calls shown in the stack trace, then reproduce the command with the XmlNotepad MSIX bundle URL. Trace whether the downloaded bundle is missing the footprint file or whether redirect handling changes the file, and consider the issue done when the command processes this URL successfully or reports a specific package problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.