Fixed
Details
Assignee
Christian PapeChristian PapeReporter
JianYetJianYetLabels
HB Grooming Date
Jan 25, 2023HB Backlog Status
Refined BacklogDocs Needed
YesFD#
1658Doc Backlog Status
HBDoc Backlog Grooming Date
Jan 27, 2023Sprint
NoneFix versions
Priority
Minor
Details
Details
Assignee
Christian Pape
Christian PapeReporter
JianYet
JianYetLabels
HB Grooming Date
Jan 25, 2023
HB Backlog Status
Refined Backlog
Docs Needed
Yes
FD#
1658
Doc Backlog Status
HB
Doc Backlog Grooming Date
Jan 27, 2023
Sprint
None
Fix versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created January 20, 2023 at 10:54 PM
Updated March 28, 2023 at 6:31 AM
Resolved March 28, 2023 at 6:31 AM
On clicking a OpenNMS HTML link, what seem to be a new session is opened rather than continuing with the current active session. It prompts to log in to OpenNMS even though there’s already an active tab/page openend. At the same time, the current active session seems to be deactivated. Subsequently, all the active sessions are logged out. When you refresh those pages, it redirects to the login page. This behavior is observed on any OpenNMS HTML link including the pages - index, events, alarms, etc.
Reproduce
Write a HTML doc containing HTML links. For example,
<!doctype html> <html lang="en"> <p><a href="http://192.168.86.145:8980/opennms/"</a>Index</p> <p><a href="http://192.168.86.145:8980/opennms/alarm/detail.htm?id=1">Alarm detail</a></p> <p><a href="http://192.168.86.145:8980/opennms/event/detail.jsp?id=8">Event detail</a></p> </html>
While logged in to OpenNMS and have an active OpenNMS page opened in front of you, open the HTML file, click those links. It will look something like this.
A login page is opened rather than being redirected to the link URL.
Refresh the active page(s), it redirects to the login page. It’s no longer active.
Proceed by logging in, it doesn’t redirect to the target URL but lands on the main page/front page. The expected behavior is to redirect to the target URL once logged in.
Tested on Horizon 31 and Horizon 30. Horizon 30 doesn’t exhibit the session issue but it does only for the last comment about URL redirection upon logging in.
Another way to reproduce this is by clicking the link from MS Teams. This behavior is not observed when testing it from Mattermost.
Problem Analysis
Looks like every time the HTML link or MS Teams link is clicked, it resets the cookie with a new JSESSIONID instead of persisting the active session cookie.