I’ve added some commits that fix the auth problems, and new unit tests that exercise auth failures.
Not mentioned in the commit logs is that a continuous replication now stops completely if it gets a 401 error.
—Jens
commit 5e8b5c79346ee0d9020ed63e28bae2117b621eda
Author: Jens Alfke <
je...@couchbase.com>
Date: Thu Jul 31 11:42:26 2014 -0700
Added unit tests that force replicator auth failures
commit 3f90b97d9cd9c3e609cf9e9ca799c3cb737f6d34
Author: Jens Alfke <
je...@couchbase.com>
Date: Thu Jul 31 11:16:52 2014 -0700
ChangeTracker should map NSURLErrorUserAuthenticationRequired to 401
The HTTPLogic class returns the lower-level code, but everywhere else
we use 401.
commit 3ff9c7a7213b59646dcfec489ef8d86a7bdfebf5
Author: Jens Alfke <
je...@couchbase.com>
Date: Thu Jul 31 11:15:10 2014 -0700
When retrying a replication, make sure to get session & checkpoint
Especially important if the replication initially failed to create a
session or fetch the remote checkpoint, because then we don't have one
at all. (This could have been causing checkpoint conflict errors.)