-
Notifications
You must be signed in to change notification settings - Fork 30
[BUG] Server Host Configuration Not Validated #184
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingideIssues related to IDEIssues related to IDEinvalidThis doesn't seem rightThis doesn't seem rightvgrep
Description
Project
vgrep
Description
In config.rs, server_host accepts any string without validation. Users can set invalid hostnames, IPs with ports embedded, URLs, or malformed addresses that will fail at runtime.
Error Message
Debug Logs
System Information
Bounty Version: 0.1.0
OS: Ubuntu 24.04 LTS
CPU: AMD EPYC-Genoa Processor (8 cores)
RAM: 15 GBScreenshots
No response
Steps to Reproduce
- Run
vgrep config set server-host "http://localhost:8080" - Or
vgrep config set server-host "not a valid host!!!" - Run
vgrep serve - Server fails with confusing error message
Expected Behavior
Configuration validates hostname/IP format and rejects invalid values
Actual Behavior
Any string accepted, runtime failure with unclear error
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingideIssues related to IDEIssues related to IDEinvalidThis doesn't seem rightThis doesn't seem rightvgrep