Event/Alarm advanced search not passing search terms

Description

When running Horizon 29.0.8 you cannot do an Advanced Search for events or alarms.  When you go to the Advanced Search for either and enter test to search for or select a severity, the search results page does not show the filter criteria at the top and the results are not filtered and matching on the search criteria.  Using the quick search on the events/alarms page does filter the list, but the advanced search just provides the entire list without any filters.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Veena Kannan June 14, 2022 at 1:45 PM

Issue fixed by Pushkar.

Pushkar Suthar May 31, 2022 at 11:24 AM

The Function has been added to FileUtil.java to remove amp; after & added in the url and then passed desanitized url to search filter in the chain.

Pushkar Suthar May 19, 2022 at 12:47 PM

Pushkar Suthar May 19, 2022 at 12:44 PM

PR raised : :Event/Alarm advanced search not passing search terms #4722

Roberto May 13, 2022 at 4:54 PM
Edited

I think it is due to amp; after & added in the url by the advanced search task

For example in release 29.0.4 the following url was working to search alarms related to a specific node label:

https://hostname/opennms/alarm/list.htm?afterfirsteventtimedate=13&afterfirsteventtimeampm=am&beforelasteventtimeampm=am&beforelasteventtimeyear=2022&beforelasteventtimehour=5&afterlasteventtimeyear=2022&beforefirsteventtimeyear=2022&beforefirsteventtimedate=13&beforefirsteventtimemonth=4&afterlasteventtimedate=13&limit=10&afterfirsteventtimeminute=27&afterfirsteventtimeyear=2022&afterlasteventtimemonth=4&beforelasteventtimeminute=27&situation=any&afterlasteventtimeminute=27&afterfirsteventtimemonth=4&beforelasteventtimemonth=4&beforefirsteventtimehour=5&beforefirsteventtimeampm=am&afterlasteventtimeampm=am&afterlasteventtimehour=5&afterfirsteventtimehour=5&beforefirsteventtimeminute=27&sortby=id&beforelasteventtimedate=13&filter=nodenamelike%3Dmln119659-sw-038343

 

In release 29.0.9 this is the not working url created:

https://hostname/opennms/alarm/list.htm?afterfirsteventtimedate=13&afterfirsteventtimeampm=am&{*}amp;{*}beforelasteventtimeampm=am&{*}amp;{*}beforelasteventtimeyear=2022&beforelasteventtimehour=5&afterlasteventtimeyear=2022&beforefirsteventtimeyear=2022&beforefirsteventtimedate=13&beforefirsteventtimemonth=4&afterlasteventtimedate=13&limit=10&afterfirsteventtimeminute=52&afterfirsteventtimeyear=2022&afterlasteventtimemonth=4&beforelasteventtimeminute=52&situation=any&afterlasteventtimeminute=52&afterfirsteventtimemonth=4&beforelasteventtimemonth=4&beforefirsteventtimehour=5&beforefirsteventtimeampm=am&afterlasteventtimeampm=am&afterlasteventtimehour=5&afterfirsteventtimehour=5&beforefirsteventtimeminute=52&sortby=id&beforelasteventtimedate=13&filter=nodenamelike%3Dmln119659-sw-038343

 

If I copy-paste the first link (starting from the question mark ) to the new release it still works

Fixed

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

FD#

Components

Sprint

Affects versions

Priority

PagerDuty

Created April 7, 2022 at 5:34 PM
Updated August 25, 2022 at 6:18 PM
Resolved June 14, 2022 at 1:45 PM