Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1010

"Session already open" error if attempting to login in a second browser tab

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: viewer-wicket-1.7.0
    • Fix Version/s: core-1.8.0
    • Component/s: Core: Viewer: Wicket
    • Labels:
      None

      Description

      Steps:
      1) login in an application
      2) open a new browser tab and navigate to /wicket/signin
      3) try to login with valid credentials

      Leads to exception like:

      Caused by: java.lang.IllegalStateException: Session already open and context not configured for autoclose
      at org.apache.isis.core.runtime.system.context.IsisContext.applySessionClosePolicy(IsisContext.java:180)
      at org.apache.isis.core.runtime.system.context.IsisContextThreadLocal.openSessionInstance(IsisContextThreadLocal.java:148)
      at org.apache.isis.core.runtime.system.context.IsisContext.openSession(IsisContext.java:273)
      at org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.execute(IsisModuleSecurityRealm.java:206)
      at org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.lookupPrincipal(IsisModuleSecurityRealm.java:135)
      at org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:74)
      at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
      at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
      at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
      at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
      ... 56 more

      I believe a proper behavior would be: if there is a logged in user then redirect to the home page automatically without even showing the sign in page

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgrigorov Martin Grigorov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: