Status history link URL is ridiculously long

Bug #643469 reported by Morten Brekkevold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Medium
Christian Strand Young

Bug Description

When viewing the status page, there is a "history" link, whose purpose is to open a report of boxState activity the last 7 days. This links to the device history app.

The URL contains a ridiculously long list of netbox IDs, one for each netbox in the database. There are several problems with this:
* Some browser enfore a max length limit for URLs
* Some web servers (namely Apache) enforce a max length for URLs.
* The URL is not reusable for its intent. You cannot bookmark it and expect it to always retrieve the last 7 days worth of boxState alerts for the entire NAV installation. It is statically connected to the list of netboxes that were being monitored at the time the link was bookmarked.

The URL needs only convey two things:
1. Limit the search to boxState events.
2. Limit the search to alerts occurring within the last 7 days.

Changed in nav:
milestone: 3.6.0b6 → 3.6.0
Revision history for this message
Magnus Eide (m-eide) wrote :

Each status section shows boxes related to selected organizations and categories.

If all organization and categories is selected the URL only needs type (boxState) and group_by (datetime, default is netbox).

If only a subset og organizations and categories are selected there are a couple of options:
 - Keep the URL as it is today, with all netboxes related to those orgs/cats.
 - Add org/cat search to devicehistory.
 - Add status section parameter to devicehistory.
 - Just show all netboxes.

Changed in nav:
milestone: 3.6.0 → 3.6.1
Changed in nav:
milestone: 3.6.1 → 3.6.2
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

It appears that http://metanav.uninett.no/hg/series/3.6.x/rev/b60b52c9bb34 is a partial fix for this.

If one's status preference settings are such that only devices owned by specific organizational units are to be displayed, the old behavior resurfaces, and all the netboxes owned by that org is added to the URL.

The correct solution here is to add the org as a search parameter in the device history URL.

Changed in nav:
status: Confirmed → In Progress
Changed in nav:
milestone: 3.6.2 → 3.6.3
Changed in nav:
milestone: 3.6.3 → 3.6.4
Changed in nav:
milestone: 3.6.4 → 3.7.1
Changed in nav:
milestone: 3.7.1 → 3.7.2
Changed in nav:
milestone: 3.7.2 → 3.7.3
Changed in nav:
milestone: 3.7.3 → 3.7.4
Changed in nav:
milestone: 3.7.4 → 3.8.1
Changed in nav:
milestone: 3.8.1 → 3.8.2
Changed in nav:
milestone: 3.8.2 → none
Changed in nav:
assignee: Magnus Eide (m-eide) → Christian Strand Young (lizter)
milestone: none → 3.9.1
Changed in nav:
status: In Progress → Fix Committed
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.