Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
now using 'multi-get' reports to pull down up to 50 objects with one …
Browse files Browse the repository at this point in the history
…http request. reworked some exception handling. improved logging in sync workers. reduced code duplication. general cleanup of some code the aforementioned things touched.
  • Loading branch information
rhodey committed Sep 27, 2014
1 parent 021ed47 commit 6c7e344
Show file tree
Hide file tree
Showing 25 changed files with 1,138 additions and 687 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import org.anhonesteffort.flock.sync.addressbook.AddressbookSyncScheduler;
import org.anhonesteffort.flock.sync.addressbook.ContactCopiedListener;
import org.anhonesteffort.flock.sync.addressbook.LocalContactCollection;
import org.anhonesteffort.flock.webdav.InvalidComponentException;

import java.util.LinkedList;
import java.util.List;
Expand Down Expand Up @@ -199,9 +198,6 @@ private void handleStartCopy() {

fromCollection.copyToAccount(copyPair.second, this);

} catch (InvalidComponentException e) {
ErrorToaster.handleShowError(getBaseContext(), e);
return;
} catch (RemoteException e) {
ErrorToaster.handleShowError(getBaseContext(), e);
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.anhonesteffort.flock.registration.AuthorizationException;
import org.anhonesteffort.flock.registration.RegistrationApiClientException;
import org.anhonesteffort.flock.registration.RegistrationApiException;
import org.anhonesteffort.flock.sync.InvalidRemoteComponentException;
import org.anhonesteffort.flock.sync.OwsWebDav;
import org.anhonesteffort.flock.webdav.InvalidComponentException;
import org.anhonesteffort.flock.webdav.PropertyParseException;
Expand Down Expand Up @@ -119,7 +120,7 @@ else if (e instanceof PropertyParseException) {

else if (e instanceof InvalidComponentException) {
InvalidComponentException ex = (InvalidComponentException) e;
if (ex.isServersFault())
if (ex instanceof InvalidRemoteComponentException)
bundle.putInt(KEY_STATUS_CODE, CODE_DAV_SERVER_ERROR);
else
bundle.putInt(KEY_STATUS_CODE, CODE_DAV_CLIENT_ERROR);
Expand Down
Loading

1 comment on commit 6c7e344

@WhisperBTC
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! BitHub has sent payment of $14.78USD for this commit.

Please sign in to comment.