summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_rep_httpc.erl
AgeCommit message (Collapse)Author
2010-07-29Revert "replicator was getting stuck on push replication to design docs by ↵John Christopher Anderson
non-admins. this fix is a bit hackish but makes replication work. once the new_replicator is in place this hackish fix will not matter, so for now it is a good solution." This reverts commit bbdce1780b71840abe3197422d697048e708146b. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@980294 13f79535-47bb-0310-9956-ffa450edef68
2010-07-27replicator was getting stuck on push replication to design docs by ↵John Christopher Anderson
non-admins. this fix is a bit hackish but makes replication work. once the new_replicator is in place this hackish fix will not matter, so for now it is a good solution. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@979908 13f79535-47bb-0310-9956-ffa450edef68
2010-07-27Merge revision 979887 from trunk:Filipe David Borba Manana
Fix issues with the replicator when using HTTP Basic authentication, receiving an HTTP redirect response, and loosing the authentication credentials because they're not found in the Location header's URL. This happens for example when the replicator does a request to the URI /somedb/_design%2Fmyddoc git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@979888 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02trailing whitespace pedantryJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950545 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04use keysearch BIF to search ejson props. Closes COUCHDB-747Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@940708 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21code improvements from tidier. Patch by Kostis Sagonas. COUCHDB-570Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@882903 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15Add support for other OAuth signature methods in replication client.Jason David Davies
To use, set auth.oauth.signature_method to either "HMAC-SHA1" (the default if not specified) or "PLAINTEXT". git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825693 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15also fix attachment redirectsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825407 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15bugfixes for redirects in replication and iolists in OAuth qs paramsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825401 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13Fix new create_target replication option when OAuth is being used.Jason David Davies
Closes COUCHDB-525. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824954 13f79535-47bb-0310-9956-ffa450edef68
2009-10-11add create_target:true option to _replicate that creates the target databaseJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824029 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30more OAuth fixes, in particular for requests with query-string parametersAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@820469 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30fix replication from DB protected by OAuth and require_valid_user=trueAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@820344 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21quietly start a new connection if changes feed is closedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817400 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02Support for replication over SSL. Resolves COUCHDB-491Adam Kocoloski
This turned out to be a decent amount of work, since: 1) ibrowse did not use SSL on dedicated connections. Wrote a simplistic patch, will contact Chandru for further discussion. 2) When nginx is used for the SSL wrapper, it wants to buffer the changes feed. Setting "proxy_buffering off" in nginx.conf helps, but some buffering still occurred. Fixed by making couch_rep_changes_feed smart enough to split merged chunks. 3) The Erlang ssl application showed instabilities when used with {active,once}. Switched to the "new implementation" using {ssl_imp, new} and instabilities disappeared. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810350 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28fix pattern matching bug in redirects for replicationAdam Kocoloski
if opening the DB returns 301, use the new URL for the rest of the replication git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808876 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28couch_rep_httpc should know about 503sAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808741 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24follow 302s in replicationAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807342 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15better failure modes in replication. See COUCHDB-193, COUCHDB-416Adam Kocoloski
If you try to replicate a DB to itself, the replication will proceed, but no checkpoints will be saved, and the logs will say "checkpoint failure: conflict (are you replicating to yourself?)" If you try to specify a non-existent DB as source or target, replication will fail immediately with a 404. The response body will indicate which DB could not be opened. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804436 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11stream _bulk_docs JSON body during replicationAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802974 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10switch pause to millisecondsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802887 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07ibrowse wrapper for replicator, will replace do_http_requestAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802145 13f79535-47bb-0310-9956-ffa450edef68