Skip to content

Malformatted export template clears set filters  #8947

@martinum4

Description

@martinum4

NetBox version

v3.1.9

Python version

3.9

Steps to Reproduce

Reproducable on demo.netbox.dev

  1. Create a malformatted export template for locations that creates an error/exception when running (e.g.
{% for location in queryset %}
{% if location.child.count() = 0 }
{{ location.name }} {% else %}{% endif %}{% endfor %}

Notice the missing % after the 0 )
2. Go to the locations screen and filter for the site, e.g. via https://demo.netbox.dev/dcim/locations/?site_id=21
3. Execute the report, exception gets thrown and the filter for site is deleted

Expected Behavior

Same as with successful running templates, keep the filters

Observed Behavior

Filters are deleted from the URL

Metadata

Metadata

Assignees

Labels

status: 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