GraphQL API returns all object if given filter is invalid #16946
Labels
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
status: accepted
This issue has been accepted for implementation
topic: GraphQL
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
NetBox Version
v4.0.7
Python Version
3.10
Steps to Reproduce
My specific use case is vlan_list filtered by site id, but the behavior can be observed across all objects (eg site_list filtered by region_id)
Add VLANs to netbox and perform a GraphQL query similar to below (where 1234567890 is not a valid site)
Expected Behavior
Return an empty list or error, as the filter is not satisfied
Observed Behavior
Returns all objects
The text was updated successfully, but these errors were encountered: