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

Server error in search #18316

Closed
jiuka opened this issue Jan 7, 2025 · 4 comments · Fixed by #18322
Closed

Server error in search #18316

jiuka opened this issue Jan 7, 2025 · 4 comments · Fixed by #18322
Assignees
Labels
severity: high Completely breaks certain functions, or substantially degrades performance application-wide status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jiuka
Copy link

jiuka commented Jan 7, 2025

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.2.0

Python Version

3.10

Steps to Reproduce

  1. Add an IP to IPAM
  2. Seach for this IP

Example: https://demo.netbox.dev/search/?q=172.16.0.7

Expected Behavior

IP is found

Observed Behavior

Server error:

  File "/opt/netbox/current/netbox/extras/models/search.py", line 73, in display_attrs
    name = self.object._meta.get_field(attr).verbose_name
AttributeError: 'GenericRel' object has no attribute 'verbose_name'
@jiuka jiuka added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Jan 7, 2025
@bctiemann bctiemann self-assigned this Jan 7, 2025
@bctiemann bctiemann added status: accepted This issue has been accepted for implementation severity: high Completely breaks certain functions, or substantially degrades performance application-wide and removed status: needs triage This issue is awaiting triage by a maintainer labels Jan 7, 2025
@bctiemann bctiemann added the status: under review Further discussion is needed to determine this issue's scope and/or implementation label Jan 7, 2025 — with Linear
@bctiemann bctiemann removed the status: accepted This issue has been accepted for implementation label Jan 7, 2025
@bctiemann bctiemann added the status: accepted This issue has been accepted for implementation label Jan 7, 2025 — with Linear
@bctiemann bctiemann removed the status: under review Further discussion is needed to determine this issue's scope and/or implementation label Jan 7, 2025
@jeremystretch
Copy link
Member

Looks like the same problem exists for VM clusters as well.

jeremystretch pushed a commit that referenced this issue Jan 7, 2025
* Fix PrefixIndex reference to 'site'

* Fix ClusterIndex reference to 'site' and add 'scope' to WirelessLANIndex
@ChrisRecioHive
Copy link

Hi,

It looks like this issue hasn't fully been fixed in the new release. When using the searchbar, I'm getting the following error

CircuitTermination has no field named 'site'

Python version: 3.12.3
NetBox version: 4.2.1
Plugins: None installed

Thanks

@bctiemann
Copy link
Contributor

@ChrisRecioHive Please open a new issue with reproduction steps. Thanks!

@bctiemann
Copy link
Contributor

@ChrisRecioHive Never mind, I opened #18350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: high Completely breaks certain functions, or substantially degrades performance application-wide status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants