Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API lookup expressions stopped working #17708

Closed
FestplattenSchnitzel opened this issue Oct 8, 2024 · 4 comments
Closed

API lookup expressions stopped working #17708

FestplattenSchnitzel opened this issue Oct 8, 2024 · 4 comments
Labels
status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application

Comments

@FestplattenSchnitzel
Copy link

FestplattenSchnitzel commented Oct 8, 2024

Deployment Type

Self-hosted

NetBox Version

4.1.3

Python Version

3.12.3

Steps to Reproduce

Run e.g. https://demo.netbox.dev/api/dcim/interfaces/?type__n=virtual as described in https://demo.netbox.dev/static/docs/reference/filtering/#lookup-expressions .

Expected Behavior

The query should return the results as described in https://demo.netbox.dev/static/docs/reference/filtering/#lookup-expressions .

Observed Behavior

HTTP 400 Bad Request
Allow: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE
Content-Type: application/json
Vary: Accept

{
    "type__n": [
        "Select a valid choice. virtual is not one of the available choices."
    ]
}
@FestplattenSchnitzel FestplattenSchnitzel added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Oct 8, 2024
@FestplattenSchnitzel
Copy link
Author

FestplattenSchnitzel commented Oct 8, 2024

Seems like (all?) other queries, e.g. https://demo.netbox.dev/api/ipam/prefixes/?status__n=container , are broken too.

@arthanson arthanson added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows status: revisions needed This issue requires additional information to be actionable and removed status: needs triage This issue is awaiting triage by a maintainer status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows labels Oct 9, 2024
@arthanson
Copy link
Collaborator

@FestplattenSchnitzel can you please check the version number, this was just fixed in 4.1.3 so I want to double-check the version you are using.

@FestplattenSchnitzel
Copy link
Author

We're definitely using Netbox version 4.1.3 from docker.io. The deployment happened around 2024-10-03 15:30 UTC in case that's relevant.

Also, is this even relevant since the behaviour is reproducible on the demo instance (which reports version 4.1.3 as well)?

@bctiemann
Copy link
Contributor

@FestplattenSchnitzel sorry about the bad timing -- this fix #17670 will be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants