Add check of SSL unverified to show a dialog

This commit is contained in:
Juan Carlos González Cabrero 2016-04-08 10:07:36 +02:00
parent f11111c1b4
commit 50f829a250
2 changed files with 14 additions and 7 deletions

@ -1 +1 @@
Subproject commit 39e3ddaa07b0943b034b34a84a33b4dc4c7475d0
Subproject commit 573afa15382b67cc84f67fc9a7b2329a72ecb352

View file

@ -1031,14 +1031,21 @@ public class FileDisplayActivity extends HookActivity implements
.equals(event));
if (RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED.
equals(event) &&/// TODO refactor and make common
equals(event) &&/// TODO refactor and make common
synchResult != null && !synchResult.isSuccess() &&
(ResultCode.UNAUTHORIZED.equals(synchResult.getCode()) ||
(synchResult.isException() && synchResult.getException()
instanceof AuthenticatorException))) {
synchResult != null && !synchResult.isSuccess()) {
requestCredentialsUpdate(context);
if(ResultCode.UNAUTHORIZED.equals(synchResult.getCode()) ||
synchResult.isIdPRedirection() ||
(synchResult.isException() && synchResult.getException()
instanceof AuthenticatorException)) {
requestCredentialsUpdate(context);
} else if(RemoteOperationResult.ResultCode.SSL_RECOVERABLE_PEER_UNVERIFIED.equals(synchResult.getCode())) {
showUntrustedCertDialog(synchResult);
}
}