Events and alarms search return error 405 POST method not allowed

Description

Events and alarms search return error 405 POST method not allowed. both basic and advanced search in events and alarms have the same problem.

I managed to solve the problem by editing the source code of the pages, replacing method="post" with method="get" in the files:

 

./includes/event-advquerypanel.jsp

./includes/event-querypanel.jsp

./includes/alarm-advquerypanel.jsp

./includes/alarm-querypanel.jsp

 

[root@localhost opennms]# grep -r "event/query" .
./WEB-INF/web.xml:    <url-pattern>/event/query</url-pattern>
./includes/event-advquerypanel.jsp:<form action="event/query" method="post">
./includes/event-querypanel.jsp:<form class="form-inline" name="event_search" action="event/query" method="post" onsubmit="return Blank_TextField_Validator()">

[root@localhost opennms]# vi ./includes/event-querypanel.jsp
[root@localhost opennms]# grep -r "alarm/query" .
./WEB-INF/web.xml:    <url-pattern>/alarm/query</url-pattern>
./includes/alarm-advquerypanel.jsp:<form action="alarm/query" method="post">
./includes/alarm-querypanel.jsp:<form class="form-inline" name="alarm_search" action="alarm/query" method="post" onsubmit="return Blank_TextField_Validator()">
[root@localhost opennms]# vi ./includes/alarm-querypanel.jsp

Environment

Centos 7 OpenNMS 30.0.4

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Christian Pape May 25, 2023 at 8:51 AM

Nothing to do. Already cherry-picked to foundation-2020.

Christian Pape May 25, 2023 at 8:50 AM

Works in foundation-2020.

Christian Pape May 24, 2023 at 11:12 AM

I checked the branches and it is in foundation-2020 but not in meridian-foundation-2020.1.35-1. So, I assume it will be in the next version.

Will Keaney May 23, 2023 at 9:42 PM

This is still present in 2021.1.26, which is in the supported Meridian range. Please backport the fix.

Mark Mahacek February 17, 2023 at 4:14 PM

There are some reports of this affecting 2021.1.23 and possibly 2019 (which would imply 2020 as well). Do you see any issues with backporting to 2020 as well?

Fixed

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

FD#

Sprint

Priority

PagerDuty

Created November 4, 2022 at 9:21 AM
Updated May 25, 2023 at 8:51 AM
Resolved May 25, 2023 at 8:51 AM