Fix automatic data reset on for users affected by encryption issues...
Fix automatic data reset on for users affected by encryption issues (EXPOSUREAPP-3313, EXPOSUREAPP-3335) (#1433) * I overlooked that `KeyException` is a subclass of `GeneralSecurityException`. This causes us to continue with `KeyException` which then fails the message matching test. As the underlying Tink code throws the GeneralSecurityException first, we check the type of the last exception. * Add additional specific test cases for nested exceptions. * The dialog shouldn't automatically dismiss when the user clicks details. They may not have read the dialog message completely or want to re-read it.
Showing
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/main/MainFragment.kt 1 addition, 1 deletion...rc/main/java/de/rki/coronawarnapp/ui/main/MainFragment.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/errors/RecoveryByResetDialogFactory.kt 10 additions, 7 deletions...coronawarnapp/util/errors/RecoveryByResetDialogFactory.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/security/EncryptionErrorResetTool.kt 2 additions, 2 deletions...i/coronawarnapp/util/security/EncryptionErrorResetTool.kt
- Corona-Warn-App/src/test/java/de/rki/coronawarnapp/util/security/EncryptionResetToolTest.kt 82 additions, 0 deletions...ki/coronawarnapp/util/security/EncryptionResetToolTest.kt
Loading
Please register or sign in to comment