Skip to content

Harden BCU console export and size detection - Fix BCU-console export failures (#879, #880)#897

Open
breshinotestachegira wants to merge 1 commit intoKlocman:masterfrom
breshinotestachegira:fix/bcu-console-export-hardening
Open

Harden BCU console export and size detection - Fix BCU-console export failures (#879, #880)#897
breshinotestachegira wants to merge 1 commit intoKlocman:masterfrom
breshinotestachegira:fix/bcu-console-export-hardening

Conversation

@breshinotestachegira
Copy link
Copy Markdown

@breshinotestachegira breshinotestachegira commented Mar 29, 2026

Summary

This PR hardens two BCU-console related failure paths.

Fixes

  • handle Everything / es.exe availability failures more defensively when estimating sizes
  • prevent XML export from failing when application metadata contains invalid XML characters

Changes

  • catch broader startup failures in FastSizeGenerator so missing/broken Everything integration degrades gracefully
  • capture stderr from es.exe and surface a more useful error message on failure
  • sanitize invalid XML characters before serializing exported application entries
  • avoid mutating the original in-memory entries by sanitizing cloned export objects
  • add a regression test covering invalid XML characters and valid Unicode preservation

Why

Two open issues report:

  • noisy or unexpected failures when Everything is unavailable
  • export crashes such as hexadecimal value 0x1F, is an invalid character

This change keeps export working and makes size-detection fallback behavior safer.

Closes #879
Closes #880

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BCU-console.exe version 6.1 has broken output xml file BCU-console.exe version 6.1 shows error

1 participant