Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3916

Automatic session timeout redirects unreliable with websockets enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.5.1.1
    • Fix Version/s: 8.5.2, 8.5.1.2
    • Component/s: ZK Client Engine
    • Security Level: Jimmy
    • Labels:
      None
    • Environment:

      Reproduced with Tomcat 8.5.29

      Description

      Steps to Reproduce

      simple test zul

      <zk>
      	<label value="Session: ${session.nativeSession.id}, Desktop: ${desktop.id}"></label>
      </zk>
      

      enable automatic-session-timeout with a timeout-uri (configuring short timeout and redirect-loop make debugging easier)

      	<session-config>
      		<device-type>ajax</device-type>
      		<timeout-uri>/test.zul</timeout-uri>
      		<automatic-timeout>true</automatic-timeout>
      		<session-timeout>10</session-timeout>
      	</session-config>
      

      Current Result

      The automatic redirect doesn't always occur. Sometimes the page remains unchanged

      Expected Result

      Reliable redirect after timeout

      Debug Info

      As seen in automatic-session-timeout-with-ws.png the last WS request didn't disconnect after 10 seconds. Instead of a "/zkau" request containing the "dummy", the "dummy" was sent to the ws endpoint. ->Then session timeout handling doesnt happen

        Issue Links

          Activity

          Hide
          rudyhuang rudyhuang added a comment -

          Fixed since 2018/04/03

          Show
          rudyhuang rudyhuang added a comment - Fixed since 2018/04/03

            People

            • Assignee:
              wenninghsu wenninghsu
              Reporter:
              cor3000 cor3000
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: