- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.9k
 
Labels
netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Milestone
Description
NetBox Edition
NetBox Community
NetBox Version
v4.4.2
Python Version
3.10
Steps to Reproduce
- Create custom field, apply it to Device Types in Object types, set name to "url", set Type to URL and Validation regex 
^https:// - Enter "http://sdfsdf" in the "url" field of a Device Type and press Save.
 
I only found this old related issue: #5558
According to the Custom Fields docs, Validation regex should work for URL which is string-based.
Expected Behavior
Save rejected with error: "Values must match this regex: ^https://" like it works for Custom Fields with "String" Type.
Observed Behavior
Device Type is saved regardless of Validation regex.
Metadata
Metadata
Assignees
Labels
netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application