Skip to content

Validation Regex is not applied to URL Custom Fields #20498

@ypid

Description

@ypid

NetBox Edition

NetBox Community

NetBox Version

v4.4.2

Python Version

3.10

Steps to Reproduce

  1. Create custom field, apply it to Device Types in Object types, set name to "url", set Type to URL and Validation regex ^https://
  2. 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 availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions