-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 21 regression bug: in a .jsp, request.getUserPrincipal() returns null despite being logged in #241
Comments
Both prod and local server? |
Local server yes; production server I haven't tried. |
I've just tried on a prod server: the answer is yes, both indeed. |
Signed-off-by: Lachlan Roberts <[email protected]>
Opened PR #243 to fix this. |
Code fix is now checked in. |
Update: bug is fixed in local devserver, but not in production server |
A bit strange as the code area for the fix also applies to prod... Maybe one thing to try first is to go to the admin console, app engine instances page and try to kill whatever running instance you see to force a restart? Restarts are not automatically done anymore... |
Thanks for your rapid answer. As suggested, I went to the admin console, AE instances page and killed the one instance that was running (apparently, it always restarts automatically even before I try to access the app in production as a user). FWIW, here is the code that correctly displays the user's e-mail with the dev server and null with the prod server: <%= (request.getUserPrincipal() != null) ? request.getUserPrincipal().getName() : "null" %> |
Thanks! |
Please find here as an attached file the source code of a test web app exercising the bug |
Works for me: bug not observed any more on the production server. |
Signed-off-by: Lachlan Roberts <[email protected]>
When setting java21 in appengine-web.xml,
in a .jsp, the call request.getUserPrincipal() returns null despite being logged in.
The text was updated successfully, but these errors were encountered: