Community
Participate
Working Groups
When connection with server is lost the application in browser seems blocked from user point of view, I think that would be desirable a message window (i.e: window.alert("...")) which tells user that the server is down or unreachable. The message should be modified by developer.
Created attachment 64503 [details] request-failure.diff Attached is a little patch which listens to the requests status and alert the user if the request failed or has a timeout. As I see this as an important bug, we should maybe split it and file a new feature request for customizable error messages with a lower priority.
Maybe this could shutdown the application and redirect to an error page (see bug 183487)
Hi Benjamin, I was testing the patch and it works fine when the server is shutdown or unreachable, Good! :-). However when the server is rebooted, I supossed that in this case there is a http session problem, the client looks like with server shutdown, that is, The client can't do anything but It doesn't appear any message on screen.
There are three categories of errors that should be handled separately: - 'fatal' server errors: usually send a complete HTML page that should be displayed as is - session timeout: the user should be notified that a new session was initiated - temporary (connection) problems: the user should be informed and retry if applicable.
*** Bug 183487 has been marked as a duplicate of this bug. ***
A further issue that must be solved is opening the same RAP site in different browser tabs (they share the same session).
*** Bug 187276 has been marked as a duplicate of this bug. ***
The original reason this bug was for is fixed in CVS HEAD. If connection problems occur, the user is given a chance to resend the request or cancel the operation. In the latter case, an error page is written and the client-side application terminates. I will leave this bug open until the other items are done.
The remaining issues (see comment #6) are implemented and committed to CVS HEAD.