Xymon Mailing List Archive search

[patch] enable/disable page pagepath cookie filtering

1 message in this thread

list Christoph Zechner · Thu, 29 Aug 2024 13:05:25 +0200 ·
Hi,

we noticed a problem when trying to access the "enable/disable" page from other pages than the main page, because it would not load all available hosts, but only a small selection.

The "enable/disable" page requested with GET uses the "pagepath" cookie to set a filter.

Currently this cookie is set to "" on main view, and to the current path and sub-pages, but it is not cleared when accessing the "non-green view" or "critical systems", which it should in our opinion.

Also we reset the cookie on the enable/disable page, so the first request will return the filtered page but following requests will not.
As filtering is done via a POST one could also reset the pagepath cookie only in response to such requests as an alternative.

Please find attached a patch to fix this problem.

Best regards
Christoph Zechner
Attachments (1)