validate-config.sh: False-positive 'server port not configured' error #111

Closed
opened 2025-09-07 13:41:57 +02:00 by michael · 1 comment
Owner

Problem

validate-config.sh meldet "Error: server port not configured" obwohl Config korrekt ist.

werner Test-Case:

[server]
host = 127.0.0.1
port = 7811
log_level = info

Actual: Error: server port not configured
Expected: Validation should pass

Root Cause Analysis Needed

Vermutlich Parsing-Problem im validate-config.sh Script:

  • Whitespace-Handling?
  • Case-sensitivity?
  • Section-Parsing-Issue?
  • INI-Parser-Logic-Fehler?

Impact

  • Users bekommen irreführende Fehlermeldungen
  • Kann zu unnötigem Debugging führen
  • Untergräbt Vertrauen in Validation-Tool
  • Verwirrt bei ansonsten erfolgreichen Installationen

Testing Environment

OpenBSD werner with complete furt.conf containing valid server section.

Reproduzierbar

# Config ist vollständig und korrekt:
doas cat /usr/local/etc/furt/furt.conf
# Zeigt komplette Config mit [server] port = 7811

# Validation fehlschlägt trotzdem:
./scripts/validate-config.sh
# Error: server port not configured

Debugging-Ansätze

  1. Debug-Output in validate-config.sh aktivieren
  2. Manual Config-Parsing testen
  3. Whitespace/Encoding-Probleme prüfen
  4. Section-Detection-Logic validieren
## Problem validate-config.sh meldet "Error: server port not configured" obwohl Config korrekt ist. **werner Test-Case:** ```ini [server] host = 127.0.0.1 port = 7811 log_level = info ``` **Actual:** Error: server port not configured **Expected:** Validation should pass ## Root Cause Analysis Needed Vermutlich Parsing-Problem im validate-config.sh Script: - Whitespace-Handling? - Case-sensitivity? - Section-Parsing-Issue? - INI-Parser-Logic-Fehler? ## Impact - Users bekommen irreführende Fehlermeldungen - Kann zu unnötigem Debugging führen - Untergräbt Vertrauen in Validation-Tool - Verwirrt bei ansonsten erfolgreichen Installationen ## Testing Environment OpenBSD werner with complete furt.conf containing valid server section. ## Reproduzierbar ```bash # Config ist vollständig und korrekt: doas cat /usr/local/etc/furt/furt.conf # Zeigt komplette Config mit [server] port = 7811 # Validation fehlschlägt trotzdem: ./scripts/validate-config.sh # Error: server port not configured ``` ## Debugging-Ansätze 1. Debug-Output in validate-config.sh aktivieren 2. Manual Config-Parsing testen 3. Whitespace/Encoding-Probleme prüfen 4. Section-Detection-Logic validieren
michael added the
effort
small
priority
medium
status
to-go
type
bug
labels 2025-09-07 13:41:57 +02:00
michael added this to the v0.1.2 - Gateway Basics milestone 2025-09-07 17:46:17 +02:00
Author
Owner

Fix confirmed working on werner:

  • validate-config.sh now works correctly with POSIX regex
  • Configuration validation passes successfully
  • Service health check confirms functionality
  • POSIX compatibility verified on OpenBSD
Fix confirmed working on werner: - validate-config.sh now works correctly with POSIX regex - Configuration validation passes successfully - Service health check confirms functionality - POSIX compatibility verified on OpenBSD
michael 2025-09-07 18:11:26 +02:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: DAW/furt#111
No description provided.