You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're currently working on some improvement for 401 handling. 401 error can happen if the user session expires and they don't have the required access to the data anymore. But in read cases, even if the user session expires, we might not get a 401. For example, assume that you opened a recordset page and didn't interact with it for some time. If later you get back to that page and open a facet modal, the data that you're going to be presented with might be different if your session has been expired.
This not only going to be confusing to the users but also it might also cause 409 errors in ermrestjs/chaise since all the Reference objects (and therefore requests) have been created based on the old user permissions.
The same issue can also happen if the user permissions change while they are interacting with the page, but that's not as frequent as the session expiring and it might be harder to guard against.
We should think about ways to fix this as it can be confusing to the users (or might cause unexpected 409 errors). One way to fix this is to periodically check the user session in the background and prompt users with the same 401 error if it has been expired.
The text was updated successfully, but these errors were encountered:
In the case that an unexpected 409 error occurs because of a session timeout, I don't think we want to show a "session timed out login dialog". Instead we should do a check to see if the session is timed out, then modify the error dialog to prepend text suggesting that this error may have occurred because a previous session existed but is no longer valid.
We're currently working on some improvement for 401 handling. 401 error can happen if the user session expires and they don't have the required access to the data anymore. But in read cases, even if the user session expires, we might not get a 401. For example, assume that you opened a recordset page and didn't interact with it for some time. If later you get back to that page and open a facet modal, the data that you're going to be presented with might be different if your session has been expired.
This not only going to be confusing to the users but also it might also cause 409 errors in ermrestjs/chaise since all the Reference objects (and therefore requests) have been created based on the old user permissions.
The same issue can also happen if the user permissions change while they are interacting with the page, but that's not as frequent as the session expiring and it might be harder to guard against.
We should think about ways to fix this as it can be confusing to the users (or might cause unexpected 409 errors). One way to fix this is to periodically check the user session in the background and prompt users with the same 401 error if it has been expired.
The text was updated successfully, but these errors were encountered: