Skip to content

Hotfix v0.16.1 — KoSIT-Validator stdin auf Windows#102

Merged
jonax1337 merged 1 commit into
mainfrom
hotfix/v0.16.1
May 22, 2026
Merged

Hotfix v0.16.1 — KoSIT-Validator stdin auf Windows#102
jonax1337 merged 1 commit into
mainfrom
hotfix/v0.16.1

Conversation

@jonax1337
Copy link
Copy Markdown
Owner

Summary

Der KoSIT-Validator wirft auf Windows IOException: Unzulässige Funktion und bricht ab, bevor ein Report geschrieben wird. Folge: jede Validierung (Dev-Modus und Production-Build) scheitert mit „Kein Report gefunden".

Ursache: KoSIT 1.6.x prüft via FileInputStream.available() ob stdin gepiped ist (Validator.isPiped() in Validator.java:292). Auf Windows wirft available() für character devices — geerbtes Console-Handle und auch NUL via Stdio::null() — eine IOException, die KoSIT nicht fängt.

Fix: stdin aus einer leeren regulären Datei füttern. Disk-type-Handle ist pollbar, available() liefert 0, isPiped() wird sauber false.

Verifiziert mit direktem Sidecar-CLI-Aufruf gegen 01-standard-19.xmlValidation successful! Acceptable: 1.

Test plan

  • cargo check → clean
  • Direktaufruf gegen golden XML produziert Report
  • In laufender App: Rechnung validieren → Badge grün
    🤖 Generated with Claude Code

KoSIT 1.6.x prüft via FileInputStream.available() ob stdin gepiped ist.
Auf Windows wirft available() für character devices (geerbtes
Console-Handle, auch NUL via Stdio::null) eine IOException, die KoSIT
nicht fängt — Validator bricht ab bevor ein Report geschrieben wird.

Fix: stdin aus leerer regulärer Datei füttern. Disk-type-Handle ist
pollbar, available() liefert 0, isPiped() wird false.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jonax1337 jonax1337 merged commit e062cac into main May 22, 2026
6 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