Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.14.2 (January 2020)
- Fix crash triggered when trying to connect to server secured with self signed certificate

## 2.14.1 (December 2019)
- Some improvements in wizard

Expand Down
2 changes: 1 addition & 1 deletion owncloud-android-library
4 changes: 2 additions & 2 deletions owncloudApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ android {

testInstrumentationRunner "com.owncloud.android.utils.OCTestAndroidJUnitRunner"

versionCode = 21400100
versionName = "2.14.1"
versionCode = 21400200
versionName = "2.14.2"

buildConfigField "String", gitRemote, "\"" + getGitOriginRemote() + "\""
buildConfigField "String", commitSHA1, "\"" + getLatestGitHash() + "\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
*/
public class AuthenticatorActivity extends AccountAuthenticatorActivity
implements OnRemoteOperationListener, OnFocusChangeListener, OnEditorActionListener,
AuthenticatorAsyncTask.OnAuthenticatorTaskListener {
AuthenticatorAsyncTask.OnAuthenticatorTaskListener, SslUntrustedCertDialog.OnSslUntrustedCertListener {

public static final String EXTRA_ACTION = "ACTION";
public static final String EXTRA_ACCOUNT = "ACCOUNT";
Expand Down Expand Up @@ -1689,6 +1689,23 @@ public boolean onEditorAction(TextView inputField, int actionId, KeyEvent event)
return false; // always return false to grant that the software keyboard is hidden anyway
}

@Override
public void onSavedCertificate() {
Timber.d("Server certificate is trusted");
checkOcServer();
}

@Override
public void onFailedSavingCertificate() {
Timber.d("Server certificate could not be saved");
Toast.makeText(this, R.string.ssl_validator_not_saved, Toast.LENGTH_LONG).show();
}

@Override
public void onCancelCertificate() {
Timber.d("Server certificate is not trusted");
}

private abstract static class RightDrawableOnTouchListener implements OnTouchListener {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,8 @@ public void onDestroy() {
saveAllClients(this, MainApp.Companion.getAccountType());

// TODO - get rid of these exceptions
} catch (
AccountNotFoundException | AuthenticatorException |
OperationCanceledException | IOException e) {
e.printStackTrace();
} catch (AccountNotFoundException | AuthenticatorException | OperationCanceledException | IOException e) {
Timber.e(e);
}

mUndispatchedFinishedOperations.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private void doOperation(Account account, String remotePath) {

mService.dispatchResultToOperationListeners(mCurrentSyncOperation, result);

sendBroadcastFinishedSyncFolder(account, remotePath, result.isSuccess());
sendBroadcastFinishedSyncFolder(account, remotePath, result != null && result.isSuccess());
}
}
}
Expand Down