[offline] database is not closed if you only do partial login #4116
Labels
dev bug
unpublished bugs, found during our development/test cycle (excluded from release notes)
state:tested
We tested it and are about to release it
Milestone
to reproduce
* try deleting credentials from the login screen - it will fail due to an existing database connection being open
the database should be closed at logout with this basic chain of events:
WindowFacade.reload
->NativeSystemApp.reloadNative
->ApplicationWindow.reload
->ApplicationWindow.closeDb
->OfflineDbFacade.closeDatabaseForUser
however
closeDb
only callscloseDatabaseForUser
when_userInfo
has been set on theApplicationWindow
. This currently only happens after we complete fulll login, when we set up push identifiers (see the"getPushIdentifier"
case inIPC._invokeMethod
).We need to make sure the user info is set in the native side even during partial login.
It may also be problematic to rely on the db being closed in the native part here as well, we might want to have an explicit call in the web part, since we might have to take care of this in Android and iOS too? (just a thought)
The text was updated successfully, but these errors were encountered: