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

avoid sending an AU request after a session timeout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.0.1
    • 8.6.2
    • ZK Client Engine
    • Security Level: Jimmy
    • ZK 9.0.1 S1

      Steps to Reproduce

      1. specify a short time out

      	<session-config>
      		<session-timeout>10</session-timeout>
      	</session-config>
      

      2. load the attached zul
      3. wait after a session expires
      4. type a char in the textbox
      ZK shows a session timeout error dialog:

      The resource you request is no longer available: /communication/timeoutAu.zul (z_9_q).
      This is normally caused by timeout, or opening too many Web pages.
      You have to reload the page and try again.

      5. click "cancel" button

      Current Result

      the session timeout error dialog pops up again

      Expected Result

      the session timeout error dialog disappears

      Debug Information

      1. this is a case to simulate a user scenario in ZSS, when you edit a cell after a session expires. Since zss sends 2 AU request, it pops up session error dialog again after you click "cancel" button
      2.
      au.js

      	obsolete: function (dtid, msg) {
      		...
      		zAu.disabledRequest = true;
      

      in the function below, it checks zAu.disabledRequest

          sendNow: function (dt) {
      		if (zAu.disabledRequest) {
      			return false;
      		}
      

      but in Widget.sendAU_(), it doesn't check zAu.disabledRequest. Please check if such inconsistency is an implementation defect.

            rudyhuang rudyhuang
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h