Missing validation of rack reservation positions #5141

Closed
opened 2025-12-29 19:24:46 +01:00 by adam · 0 comments
Owner

Originally created by @candlerb on GitHub (Aug 5, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.10

Python version

3.6

Steps to Reproduce

  1. Open a rack, click on "add reservation"
  2. (Wrongly) enter the position as "U44" instead of "44"

Expected Behavior

A form validation error, allowing the field to be edited and resubmitted

Observed Behavior

An exception is raised:

ValueError at /dcim/rack-reservations/add/
invalid literal for int() with base 10: 'U44'
Originally created by @candlerb on GitHub (Aug 5, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.10 ### Python version 3.6 ### Steps to Reproduce 1. Open a rack, click on "add reservation" 2. (Wrongly) enter the position as "U44" instead of "44" ### Expected Behavior A form validation error, allowing the field to be edited and resubmitted ### Observed Behavior An exception is raised: ``` ValueError at /dcim/rack-reservations/add/ invalid literal for int() with base 10: 'U44' ```
adam added the type: bugstatus: accepted labels 2025-12-29 19:24:46 +01:00
adam closed this issue 2025-12-29 19:24:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5141