|
Re: Migration from Scout 10 to 22 [message #1851170 is a reply to message #1851167] |
Tue, 29 March 2022 12:03 |
|
Hi Mark,
is there any error shown in the browser console? Press F12 to open the dev tools and then reload the page.
Does your index.html use the <scout:scripts> tag referring the entry point or does it include the scripts explicitly using <scout:script>? See also Migration Guide 11. Using the dev tools network panel, you can also check whether the scripts included in the actual index.html returned by your server are really loaded by the browser.
|
|
|
|
|
Re: Migration from Scout 10 to 22 [message #1851178 is a reply to message #1851176] |
Tue, 29 March 2022 13:58 |
Mark Ashworth Messages: 40 Registered: January 2012 |
Member |
|
|
Hi Claudio,
Apologies, you are 100% correct. I am trying to set scout.devMode=false so that I can test the login screen on my local development machine. It also shows a blank screen when I deploy the application using the web archive.
I run the 'webapp all.launch' which runs the pnpm scripts and starts the dev & ui server in debug mode.
I tried the /?debug=false and the scout.loadWebResourcesFromFilesystem=true in the link that you shared. Unfortunately this did not work.
The issue seems to be happening in the UiServletFilter class when it forwards to the login form.
BEANS.get(ServletFilterHelper.class).forwardToLoginForm(req, resp);
When I put a breakpoint in the ServletFilterHelper on the acceptForwardOrRedirect method, I notice that I get 3 forward requests
1. The first forward request is for '/'
2. The second forward request is for '/login.html'
3. The third forward request is for '/defaultValues'.
When forward request number 3 is encountered, ServletFilterHelper responds with the following JSON reply
{"error":{"code":10,"message":"The session has expired, please reload the page."}}
It seems that is where the processing stops and a blank screen is shown.
Here is the logging for the ui.html.app.dev project
2022-03-29 16:53:56,533 DEBUG [qtp844112759-54] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.forwardOrRedirectTo(ServletFilterHelper.java:327) - Forwarding '/' to '/login.html' - MDC[]
2022-03-29 16:53:57,185 DEBUG [qtp844112759-56] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.forwardOrRedirectTo(ServletFilterHelper.java:327) - Forwarding '/clearinsights-7c0d7c231bea0cae83d7.min.js.map' to '/login.html' - MDC[]
2022-03-29 16:53:57,524 DEBUG [qtp844112759-57] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.forwardOrRedirectTo(ServletFilterHelper.java:327) - Forwarding '/vendors~clearinsights-de96191dbf85e88095d6.min.js.map' to '/login.html' - MDC[]
2022-03-29 16:53:57,535 DEBUG [qtp844112759-55] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.forwardOrRedirectTo(ServletFilterHelper.java:327) - Forwarding '/vendors~clearinsights~login~logout-729d8cc8ebdb75ab5d49.min.js.map' to '/login.html' - MDC[]
2022-03-29 16:53:57,777 DEBUG [qtp844112759-54] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.acceptForwardOrRedirect(ServletFilterHelper.java:345) - Returning session timeout error as json for path /defaultValues, based on Accept header application/json, text/javascript, */*; q=0.01. - MDC[]
On my sample project that I created directly for version 22 and the scout.devMode=false, the last log entry for for the '/defaultValues' is not present and the login screen is shown.
Kind regards,
Mark Ashworth
[Updated on: Tue, 29 March 2022 14:58] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03654 seconds