Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Redirection does not work after session timeout in Admin Console #25216

Closed
tnagao7 opened this issue Nov 19, 2024 · 1 comment · Fixed by #25217
Closed

Redirection does not work after session timeout in Admin Console #25216

tnagao7 opened this issue Nov 19, 2024 · 1 comment · Fixed by #25217
Labels
bug Something isn't working
Milestone

Comments

@tnagao7
Copy link
Member

tnagao7 commented Nov 19, 2024

Environment Details

  • GlassFish Version (and build number): GlassFish 7.0.19
  • JDK version: OpenJDK 21.0.4
  • OS: Red Hat Enterprise Linux 8.6
  • Database: none

Problem Description

After session timeout in the Admin Console, the page only containing "class jakarta.faces.application.ViewExpiredException" is shown, and the web browser is not redirected to the home page or the login page.

gui-viewexpiredexception

This behavior is reproduced in GlassFish 7 or later.
It is expected that the web browser is redirected to the home page or the login page as in GlassFish 6 or earlier.

Steps to reproduce

This is reproduced when a button triggering Ajax communication is clicked after session timeout.

  1. Run the following commands to set the admin session timeout to 1 minute.
    • asadmin set server.admin-service.das-config.admin-session-timeout-in-minutes=1
    • asadmin stop-domain
    • asadmin start-domain
  2. Open the Admin Console in the web browser.
  3. Open the "Clusters" page and wait more than 1 minute.
  4. Click the "New" button.

Impact of Issue

It is an incompatibility with GlassFish 6 or earlier.

@tnagao7
Copy link
Member Author

tnagao7 commented Nov 19, 2024

Since Mojarra 4.0, the property com.sun.faces.enableRestoreView11Compatibility has been ignored, and thus jakarta.faces.application.ViewExpiredException is thrown when session timeout.

See also eclipse-ee4j/mojarra#4766

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants