Custom Field URL Filter is too restrictive for weird ports #127

Closed
opened 2026-04-05 16:22:01 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Myke on 3/18/2026

NetBox Edition

NetBox Community

NetBox Version

v4.4.10

Python Version

3.12

Steps to Reproduce

Add a URL custom field to some object, try inputting a URL like "https://100.65.18.1:9/" and Netbox'x input validation rejects it upon submission, saying it's an invalid URL.

It's not; it's definitely a strange port, but it's not an invalid URL and should be accepted by Netbox.

Expected Behavior

The URL should be stored without error.

Maybe the URL input validation/filter logic also needs to be customizable, or a warning rather than rejection could occur.

Observed Behavior

Form submission is rejected, with a red "Enter a valid URL." adjacent to the URL field in question.

Image
*Originally created by @Myke on 3/18/2026* ### NetBox Edition NetBox Community ### NetBox Version v4.4.10 ### Python Version 3.12 ### Steps to Reproduce Add a URL custom field to some object, try inputting a URL like "https://100.65.18.1:9/" and Netbox'x input validation rejects it upon submission, saying it's an invalid URL. It's not; it's **definitely** a **strange** port, but it's _not_ an invalid URL and should be accepted by Netbox. ### Expected Behavior The URL should be stored without error. Maybe the URL input validation/filter logic also needs to be customizable, or a warning rather than rejection could occur. ### Observed Behavior Form submission is rejected, with a red "Enter a valid URL." adjacent to the URL field in question. <img width="339" height="252" alt="Image" src="https://github.com/user-attachments/assets/5e43f74f-4821-474f-a60a-7020cd84ae9b" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#127