X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/830bb7c85303e8725203d083940e4bfc568a405f..e04f25735a665d6f99383bb54da055b723b088f1:/src/com/owncloud/android/syncadapter/FileSyncAdapter.java diff --git a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java index 2bf135bc..4103dbf7 100644 --- a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java +++ b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java @@ -225,7 +225,7 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { } else { if (result.getCode() == RemoteOperationResult.ResultCode.UNAUTHORIZED || - (result.isTemporalRedirection() && getClient().getSsoSessionCookie() != null)) { + ((result.isTemporalRedirection() || result.isIdPRedirection()) && getClient().getSsoSessionCookie() != null)) { mSyncResult.stats.numAuthExceptions++; } else if (result.getException() instanceof DavException) { @@ -308,7 +308,8 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { notification.flags |= Notification.FLAG_AUTO_CANCEL; boolean needsToUpdateCredentials = (mLastFailedResult != null && ( mLastFailedResult.getCode() == ResultCode.UNAUTHORIZED || - (mLastFailedResult.isTemporalRedirection() && AccountAuthenticator.AUTH_TOKEN_TYPE_SAML_WEB_SSO_SESSION_COOKIE.equals(getClient().getAuthTokenType())) + ((mLastFailedResult.isTemporalRedirection() || mLastFailedResult.isIdPRedirection()) + && AccountAuthenticator.AUTH_TOKEN_TYPE_SAML_WEB_SSO_SESSION_COOKIE.equals(getClient().getAuthTokenType())) ) ); // TODO put something smart in the contentIntent below for all the possible errors