ICEfaces
  1. ICEfaces
  2. ICE-7085

Browser status/connection indicator spins when the User Session Expire dialog is shown

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, EE-1.8.2.GA_P03
    • Fix Version/s: 2.1-Beta, 3.0, EE-1.8.2.GA_P04
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P3

      Description

      When the user session has expired on an ICEfaces app, the User Session Expired popup is shown. The browser status or connection indicator begins to spin indicating that it is loading or processing something. This issue is reproducible on both Firefox and IE browsers and only seems to affect the ICEfaces EE 1.8.2 P03 release.

      Upon reviewing the Firebug console output., the connection is closed properly and no other communication is sent when the session has expired.

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment userExpired-pageStillLoading.avi [ 13394 ]
        Attachment Case10338Example.war [ 13395 ]
        Hide
        Arran Mccullough added a comment -

        Attached test case and video which shows the issue. To reproduce the issue with the test case, deploy the war to Tomcat 6. Bring up the welcomeICEfaces.iface page and let it sit there for 1 min. The session should expire and the indicator will start to spin.

        Show
        Arran Mccullough added a comment - Attached test case and video which shows the issue. To reproduce the issue with the test case, deploy the war to Tomcat 6. Bring up the welcomeICEfaces.iface page and let it sit there for 1 min. The session should expire and the indicator will start to spin.
        Arran Mccullough made changes -
        Salesforce Case [5007000000HzdMX]
        Priority Major [ 3 ] Minor [ 4 ]
        Arran Mccullough made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Arran Mccullough made changes -
        Attachment userExpired-pageStillLoading.avi [ 13394 ]
        Ken Fyten made changes -
        Fix Version/s 2.1 [ 10241 ]
        Assignee Priority P3
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #25187 Thu Aug 04 06:33:42 MDT 2011 mircea.toma ICE-7085 Close iframe's document to let the browser know that there's no more makup written anymore.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/status.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #25188 Thu Aug 04 06:58:09 MDT 2011 mircea.toma ICE-7085 Close iframe's document after writing its markup to stop the browsers from waiting for more incoming markup.
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/compat/core/src/main/javascript/status.js
        Hide
        Mircea Toma added a comment -

        When the session popup is rendered there is also an overlay rendered behind it. This overlay is an iframe that has its content written dynamically by Javascript to avoid having a request for a blank page going back to the server. The iframe markup is written with the document.write function and since the document is never closed the browser is still waiting for markup to be written, hence the busy indicator spinning.

        The solution was to call "document.close()" after the markup was written.

        Show
        Mircea Toma added a comment - When the session popup is rendered there is also an overlay rendered behind it. This overlay is an iframe that has its content written dynamically by Javascript to avoid having a request for a blank page going back to the server. The iframe markup is written with the document.write function and since the document is never closed the browser is still waiting for markup to be written, hence the busy indicator spinning. The solution was to call "document.close()" after the markup was written.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mircea Toma made changes -
        Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
        Fix Version/s 2.1 [ 10241 ]
        Mircea Toma made changes -
        Fix Version/s 2.1 [ 10241 ]
        Affects Version/s 2.0.2 [ 10273 ]
        Ken Fyten made changes -
        Fix Version/s 2.1-Beta [ 10291 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: