Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error line during ExtractPrograms

Open Beginner friendly
#984 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
powershell, shell, xml
Domain
tooling

Research direction

Read install/ExtractPrograms.ps1 around lines 156–165, where the manifest is loaded as XML and the conversion fails for malformed input. Reproduce with a manifest whose DisplayName tag is unclosed, then check how the script handles that manifest. Done means extraction continues safely past the malformed manifest; the issue suggests wrapping these lines in try-catch.

Written by the indexing model from the issue text.

Description

triage
What happened?

Error lines in ~/.local/share/winapps/detected:

Cannot convert value "System.Object[]" to type "System.Xml.XmlDocument". Error: "The 'DisplayName' start tag on line 5 
position 6 does not match the end of 'Properties'. Line 8, position 5."
At \\tsclient\home\.local\share\winapps\ExtractPrograms.ps1:156 char:2
+     [xml]$manifest = Get-Content $manifestPath
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvalidCastToXmlDocument

At https://github.com/winapps-org/winapps/blob/42c7e8318280c6fc3426c7afebfc7f43b895f4c8/install/ExtractPrograms.ps1#L156-L165

It is fine if wrap these lines with try-catch

Your FreeRDP version and where you got it from

FreeRDP 3.10 (nixpkgs)

Your Linux distribution and version

Debian Buster

Your winapps.conf
Irrelevant
Logs

Terms
  • I am running the latest version.
  • To the best of my knowledge, this is a bug and not a setup nor a FreeRDP problem.
  • I have checked for duplicate issues.
  • I agree to follow this project's Code of Conduct.
Dominant language
Shell
Stars
16.1k
Forks
516
Avg merge
37m
Merged PRs (30d)
1

Getting set up

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.

More from winapps-org/winapps

All issues in winapps-org/winapps

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.