Skip to content

Search fails due to search cache populated with non-existent models after plugin removal ('NoneType' object has no attribute 'objects') #13507

@pv2b

Description

@pv2b

NetBox version

v3.5.8

Python version

Steps to Reproduce

Note: The full and exact repro steps aren't verified right now, but I agreed with @kkthxbye-code that I should file this as a bug anyway, as per our discussion on Slack.

  1. Install a plugin, such as netbox-topology-views
  2. Create a device, and make sure that somehow a "coordinate" is saved for that device. (Don't have exact steps for this right now.)
  3. Uninstall the plugin.
  4. Search for the name of the device that was created.

Expected Behavior

I expect to get a page of search results including that object.

Observed Behavior

I an get error screen with the python exception 'NoneType' object has no attribute 'objects'

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions