netbird gui improvement for URL sanitization / user feedback #657

Open
opened 2025-11-20 05:15:29 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @TSJasonH on GitHub (Feb 27, 2024).

Describe the problem

Management URLs are not sanitized against user input. If the user enters invalid characters nothing happens when they click connect and they are left scratching their heads. Users copy/paste the Management URL. Sometimes they get extra characters in the clipboard.

To Reproduce

Steps to reproduce the behavior:

In this example, a carriage return was included by the user over-selecting during copy/paste. To reproduce simply over-copy a URL to the next line so a '/r' gets invisibly added to the clipboard entry and paste it into the gui management URL field.

Expected behavior

The gui should sanitize user inputs against this type of obvious error
or
provide an error pop-up for the user without having to dig into the client.log

Are you using NetBird Cloud?

Self-hosted

NetBird version

0.26

Context

From the client.log (domain masked):
2024-02-27T15:27:46+04:00 ERRO client/internal/config.go:337: failed parsing Management URL URL https://netbird.domain.com:33073
: [parse "https://netbird.domain.com:33073\r ": net/url: invalid control character in URL]

Originally created by @TSJasonH on GitHub (Feb 27, 2024). **Describe the problem** Management URLs are not sanitized against user input. If the user enters invalid characters nothing happens when they click connect and they are left scratching their heads. Users copy/paste the Management URL. Sometimes they get extra characters in the clipboard. **To Reproduce** Steps to reproduce the behavior: In this example, a carriage return was included by the user over-selecting during copy/paste. To reproduce simply over-copy a URL to the next line so a '/r' gets invisibly added to the clipboard entry and paste it into the gui management URL field. **Expected behavior** The gui should sanitize user inputs against this type of obvious error or provide an error pop-up for the user without having to dig into the client.log **Are you using NetBird Cloud?** Self-hosted **NetBird version** 0.26 **Context** From the client.log (domain masked): 2024-02-27T15:27:46+04:00 ERRO client/internal/config.go:337: failed parsing Management URL URL https://netbird.domain.com:33073 : [parse "https://netbird.domain.com:33073\r ": net/url: invalid control character in URL]
saavagebueno added the bugclientUX labels 2025-11-20 05:15:29 -05:00
Author
Owner

@pascal-fischer commented on GitHub (Feb 27, 2024):

Hi @TSJasonH,

thanks for pointing this out. We will work on improving the validation of the fields in the desktop client UI.

@pascal-fischer commented on GitHub (Feb 27, 2024): Hi @TSJasonH, thanks for pointing this out. We will work on improving the validation of the fields in the desktop client UI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#657