Min/max validation failures for numeric fields is misleading #11638

Closed
opened 2025-12-29 21:47:56 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Sep 19, 2025).

Originally assigned to: @jeremystretch on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.4.1

Python Version

3.12

Steps to Reproduce

  1. Go to create a new ASN
  2. Enter the AS number 4294967296 (which exceeds the maximum permitted value of 4294967295) and select a RIR
  3. Attempt to submit the form

Expected Behavior

An error message should appear informing the user that the provided ASN exceeds the maximum allowed value.

Observed Behavior

The error message indicates "This field is required." The message does not offer any helpful direction to the user.

Image
Originally created by @jeremystretch on GitHub (Sep 19, 2025). Originally assigned to: @jeremystretch on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.4.1 ### Python Version 3.12 ### Steps to Reproduce 1. Go to create a new ASN 2. Enter the AS number `4294967296` (which exceeds the maximum permitted value of `4294967295`) and select a RIR 3. Attempt to submit the form ### Expected Behavior An error message should appear informing the user that the provided ASN exceeds the maximum allowed value. ### Observed Behavior The error message indicates "This field is required." The message does not offer any helpful direction to the user. <img width="660" height="129" alt="Image" src="https://github.com/user-attachments/assets/8613ef35-b089-4d61-910c-58bcb95d00d3" />
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:47:56 +01:00
adam closed this issue 2025-12-29 21:47:56 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 19, 2025):

It's worth noting that a similar issues exists with numeric custom fields. Attempting to submit a form which contains a custom field having a value outside its min/max range merely alters the field's styling. It does not display an error message at all:

Image
@jeremystretch commented on GitHub (Sep 19, 2025): It's worth noting that a similar issues exists with numeric custom fields. Attempting to submit a form which contains a custom field having a value outside its min/max range merely alters the field's styling. It does not display an error message at all: <img width="685" height="87" alt="Image" src="https://github.com/user-attachments/assets/937f5cc6-edf6-46d5-b370-ef5708ba9c3e" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11638