Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-8389

[7.9] Attempting to log in with the correct credentials but with insufficient permissions for the application causes a stracktrace

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.26.10
    • None
    • None

    Description

      [INFO] [talledLocalContainer] 21.10.2014 13:08:53 ERROR http-bio-8080-exec-10 [RepositoryRuntimeExceptionHandlingRequestCycleListener.createRequestHandler:69] Creating RequestHandler for InvalidSessionException: org.hippoecm.frontend.session.InvalidSessionException: Invalid (non-live) session found.
      [INFO] [talledLocalContainer] org.hippoecm.frontend.session.InvalidSessionException: Invalid (non-live) session found.
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.map.JcrMap.handleRepositoryException(JcrMap.java:445)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.map.JcrMap.get(JcrMap.java:304)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugin.config.impl.JcrPluginConfig.get(JcrPluginConfig.java:449)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugin.config.impl.AbstractPluginDecorator.get(AbstractPluginDecorator.java:114)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugin.config.impl.ClusterConfigDecorator$PluginConfigDecorator.get(ClusterConfigDecorator.java:47)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.map.AbstractValueMap.getString(AbstractValueMap.java:120)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.service.render.AbstractRenderService.getVariation(AbstractRenderService.java:323)
      [INFO] [talledLocalContainer] at org.apache.wicket.Localizer.getStringIgnoreSettings(Localizer.java:314)
      [INFO] [talledLocalContainer] at org.apache.wicket.Localizer.getString(Localizer.java:201)
      [INFO] [talledLocalContainer] at org.apache.wicket.Localizer.getString(Localizer.java:170)
      [INFO] [talledLocalContainer] at org.apache.wicket.model.StringResourceModel.getString(StringResourceModel.java:426)
      [INFO] [talledLocalContainer] at org.apache.wicket.model.StringResourceModel.getString(StringResourceModel.java:401)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.RememberMeLoginPlugin.handleLoginFailure(RememberMeLoginPlugin.java:568)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.RememberMeLoginPlugin.access$1800(RememberMeLoginPlugin.java:79)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.RememberMeLoginPlugin$SignInForm.login(RememberMeLoginPlugin.java:422)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.RememberMeLoginPlugin$SignInForm$4.onSubmit(RememberMeLoginPlugin.java:302)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:108)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:179)
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1266)
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:156)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:123)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:626)
      [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:601)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
      [INFO] [talledLocalContainer] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
      [INFO] [talledLocalContainer] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:263)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      [INFO] [talledLocalContainer] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      [INFO] [talledLocalContainer] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:722)
      [INFO] [talledLocalContainer] Caused by: javax.jcr.RepositoryException: This session has been closed. See the chained exception for a trace of where the session was closed.
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.checkAlive(SessionState.java:150)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.sanityCheck(ItemImpl.java:101)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.hasProperty(NodeImpl.java:2452)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.NodeDecorator.hasProperty(NodeDecorator.java:306)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.map.JcrMap.get(JcrMap.java:266)
      [INFO] [talledLocalContainer] ... 63 more
      [INFO] [talledLocalContainer] Caused by: java.lang.Exception: Stack trace of where session-28 was originally closed
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.close(SessionState.java:275)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:947)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:397)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.jackrabbit.XASessionImpl.logout(XASessionImpl.java:177)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.SessionDecorator.logout(SessionDecorator.java:292)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.impl.SessionDecorator.logout(SessionDecorator.java:329)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.JcrSessionModel.flush(JcrSessionModel.java:78)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.JcrSessionModel.detach(JcrSessionModel.java:104)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.session.PluginUserSession.login(PluginUserSession.java:325)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.session.PluginUserSession.login(PluginUserSession.java:258)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.RememberMeLoginPlugin$SignInForm.login(RememberMeLoginPlugin.java:355)
      [INFO] [talledLocalContainer] ... 50 more

      To reproduce try to log in as editor in the console.

      The reason for the stacktrace is that the login itself was successful, causing the temporary fallback session that services the login application to be signed out. But when attempting to subsequently render a message for the user to display the reason for the login failure, the same logged out temporary session must be accessed.

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              uhommes Unico Hommes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: