Rack Reservations - Custom Field REST API filtering not working #4512

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

Originally created by @anttof on GitHub (Jan 29, 2021).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.7.9
  • NetBox version: 2.10.4

Steps to Reproduce

  1. Create Custom Field (tried text, boolean, integer so far) - Apply field on rack-reservations.
  2. Create rack-reservation and fill in created custom-field.
  3. Use "?cf_customfieldname=value" REST API filter to filter rack-reservations
  4. Example:

Expected Behavior

Only rack-reservations matching custom-field rest api filter should be matched and displayed.

Observed Behavior

All rack-reservations are displayed with the rest api filter applied. Including those not matching the filter.

Originally created by @anttof on GitHub (Jan 29, 2021). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.7.9 * NetBox version: 2.10.4 ### Steps to Reproduce 1. Create Custom Field (tried text, boolean, integer so far) - Apply field on rack-reservations. 2. Create rack-reservation and fill in created custom-field. 3. Use "?cf_customfieldname=value" REST API filter to filter rack-reservations 4. Example: * https://netbox.net/api/dcim/rack-reservations/?cf_service_id=123456 <-- Displays all rack-reservations, including those with other cf "service_id" than "123456" * https://netbox.net/api/dcim/devices/?cf_service_id=123456 <-- Works correctly and displays only devices with cf "service_id" set to "123456" <!-- What did you expect to happen? --> ### Expected Behavior Only rack-reservations matching custom-field rest api filter should be matched and displayed. <!-- What happened instead? --> ### Observed Behavior All rack-reservations are displayed with the rest api filter applied. Including those not matching the filter.
adam added the type: bugstatus: accepted labels 2025-12-29 18:36:51 +01:00
adam closed this issue 2025-12-29 18:36:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4512