Skip to content

fix(powershell): tolerate quoted/padded FUNDSXML_SCHEMA_DIR#20

Merged
karlkauc merged 1 commit into
mainfrom
fix/ps-schema-dir-env-quotes
May 18, 2026
Merged

fix(powershell): tolerate quoted/padded FUNDSXML_SCHEMA_DIR#20
karlkauc merged 1 commit into
mainfrom
fix/ps-schema-dir-env-quotes

Conversation

@karlkauc

Copy link
Copy Markdown
Contributor

Problem

powershell -File Validate-FundsXml.ps1 4.1.0 ROY2Q4H9FS57_2026.05.11.xml
Test-Path : Illegales Zeichen im Pfad.  (Validate-FundsXml.ps1:51)

$env:FUNDSXML_SCHEMA_DIR was set via cmd's set VAR="C:\...", which
keeps the double quotes literally in the value. A " is an illegal
Windows path character, so Test-Path threw an ArgumentException
before the "not found" check — aborting validation entirely.

Fix

The env var is the documented "corporate/offline escape hatch", so it
should tolerate this very common shell mistake. Trim surrounding quotes
("/') and whitespace from the value before using it as a path.

No behavior change for correctly-set values.

🤖 Generated with Claude Code

cmd's `set VAR="x"` keeps the quotes in the value; the stray " is an
illegal Windows path character and made Test-Path throw before the
not-found check, aborting validation. Trim surrounding quotes and
whitespace from the env var so the documented corporate escape hatch
tolerates this common shell mistake.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@karlkauc karlkauc merged commit 625f12b into main May 18, 2026
4 checks passed
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.

1 participant