Session Unload Error Page [message #1840645] |
Wed, 21 April 2021 09:56 |
Seydou Zakou Messages: 44 Registered: May 2020 |
Member |
|
|
Hi All,
We have a scout application in production. When a user left his browser window after a certain amount of time without disconnecting, his session expires. After logged in again, instead of redirecting the user to the last outline and page or the default outline, he is redirected to an error page at the URL: http://x.x.x.x:8080/unload/1:xxxxxx... Note that the redirected URL point to the /ROOT context whereas the application is deployed to http://x.x.x.x:8080/scout-app ! .If he go back to application by typing the url in the browser Address Bar, the application default page appear with his session logged in.
Attached a screen shot of the error the error screen.
Does anyone has encountered a similar error? what can cause this error?
Scout version: 10.0.28
Conatiner: Tomcat 9
JVM: adopt-openjdk-11
[Updated on: Thu, 22 April 2021 09:46] Report message to a moderator
|
|
|
|
|
Re: Session Unload Error Page [message #1840781 is a reply to message #1840706] |
Fri, 23 April 2021 14:46 |
|
Hi,
can you please update to the latest version (10.0.45) or downgrade to the previous one (10.0.27)? Does it work with these builds? It looks to me that 10.0.28 is corrupt and should not be used.
Do you use Tomcat based authentication or the Scout Login form?
|
|
|
|
Re: Session Unload Error Page [message #1840821 is a reply to message #1840804] |
Mon, 26 April 2021 07:37 |
|
Hi,
could you provide some more details? What browser are you using? After what time does it happen? What do you exactly mean by leaving the window? Do you open another application so that the browser is in the background or do you minimize the browser or maybe just open another tab? What is your configured session timeout in web.xml?
When the session timeout expires a message box should appear so the user can reload the page. Does this message box ever appear? Do you use Tomcat based authentication or the Scout Login form? Have you set any session related properties in the config.properties (e.g. scout.ui.maxUserIdleTime?).
Can you reproduce the error with a newly created Scout project?
|
|
|
|
|
Re: Session Unload Error Page [message #1840848 is a reply to message #1840839] |
Mon, 26 April 2021 15:39 |
|
Hi all,
thank you for the responses. We were able to reproduce and fix it: https://git.eclipse.org/r/c/scout/org.eclipse.scout.rt/+/179828
I don't know yet when the next builds are planned, but in the meantime, you can easily workaround it by making sure, that requests to /unload/ won't be forwarded to the login page.
Just adjust your code in your UiServletFilter in the following way:
if (req.getPathInfo().startsWith("/unload/")) {
resp.sendError(HttpServletResponse.SC_FORBIDDEN);
return;
}
BEANS.get(ServletFilterHelper.class).forwardToLoginForm(req, resp);
@Nils: I suggest you replace your workaround with the above one, because I think the legacy fallback won't work for modern browsers, so your app probably doesn't do a proper unload anymore.
|
|
|
|
|
|
Re: Session Unload Error Page [message #1841083 is a reply to message #1841074] |
Mon, 03 May 2021 12:16 |
|
Hi Mark
Yes, that is very likely the same problem. When the server is restarted, all sessions are lost. For a specific user this behaves the same as if the session had been terminated by the app server due to a timeout.
Regards,
Beat
|
|
|
|
Powered by
FUDForum. Page generated in 0.05001 seconds