Session timeout shown sometimes when changing roles

Description

As reported in IDEMPIERE-4175.

In the test-postgresql and test-oracle servers, sometimes the session timeout UI is shown when changing roles, it is not consistent, it happens sometimes the first time, sometimes it takes more attempts.

I tested with the Brave browser.

Steps to reproduce:

  1. Login as SuperUser

  2. Select the Garden Admin role

  3. Click OK

  4. Click on change role

  5. Select system as the role

  6. Click OK

Expected result:
The home UI is shown as System (or the selected role)

Actual result:
The system timeout UI is shown, when you click continue, the GardenAdmin session is shown again.

Attached you can find a video showing the behaviour

Environment

None

Activity

Show:
Heng Sin Low
April 5, 2020, 2:26 PM

While your testing shows that might be the case, I’ve found no logical reason why this issue doesn’t exists in 7.1. For the change role part, it is essentially the same code between 7.1 an master.

Carlos Ruiz
April 5, 2020, 3:33 PM

I see jetty and zk are the same versions - but maybe the changes on org.adempiere.eclipse.equinox.http.servlet* could affect?

SessionManager also has some minor differences.

Carlos Ruiz
April 5, 2020, 4:18 PM

Well - now I repeated the tests in my local release-7.1 - and the issue happened after 13 iterations.

Carlos Ruiz
April 6, 2020, 10:52 AM

test-oracle and test-postgresql passed test with 200 iterations

Hiep Lq
April 7, 2020, 5:32 AM

i have test server, yesterday i update to latest of 7.1
today it's hang i check log and see full of message
10:58:45.720-----------> ZkAtmosphereHandler.warn: Could not find session: /webui/zkau/comet;jsessionid=node0gi72ftw9stds23v3otjmwmoo47.node0 [1269]
.....
12:06:12.569-----------> ZkAtmosphereHandler.warn: Could not find session: /webui/zkau/comet;jsessionid=node0gi72ftw9stds23v3otjmwmoo47.node0 [1670]

(more than 1 hour)

will restart to see it happen again or not

Assignee

Heng Sin Low

Reporter

Diego Ruiz

Labels

None

Tested By

None

Affects versions

Priority

Minor
Configure