Filtering rack reservations by username raises ValueError #4382

Closed
opened 2025-12-29 18:35:27 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Dec 18, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.10.1

Steps to Reproduce

  1. Create one or more rack reservations
  2. Attempt to filter the reservations by username, e.g. GET /api/dcim/rack-reservations/?user=jstretch

Expected Behavior

NetBox should return only the reservations assigned to the specified user.

Observed Behavior

A ValueError exception is raised because the user filter is incorrectly defined on RackFilterSet.

Originally created by @jeremystretch on GitHub (Dec 18, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.10.1 ### Steps to Reproduce 1. Create one or more rack reservations 2. Attempt to filter the reservations by username, e.g. `GET /api/dcim/rack-reservations/?user=jstretch` ### Expected Behavior NetBox should return only the reservations assigned to the specified user. ### Observed Behavior A ValueError exception is raised because the `user` filter is incorrectly defined on RackFilterSet.
adam added the type: bugstatus: accepted labels 2025-12-29 18:35:27 +01:00
adam closed this issue 2025-12-29 18:35:27 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4382