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

avoid sending an AU request after a session timeout

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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