summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-11-19Merged revision 1036705 from trunk:Filipe David Borba Manana
Make sure that after a local database compaction the old database reference counters don't get unreleased forever because of a continuous (or long) replication is going on. Same type of issue as in COUCHDB-926. Thanks Adam Kocoloski for some suggestions. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1036711 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18Merged revision 1036627 from trunk:Filipe David Borba Manana
Preserve user context when reopening a database. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1036629 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18Merged revision 1036407 from trunk:Filipe David Borba Manana
Make sure that after compaction of the authentication database the old reference counter is released. Same type of issue as in COUCHDB-926. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1036408 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18Merged revision 1032673 from trunk:Filipe David Borba Manana
Preserve attachment identity length when doing local to local replications. Closes COUCHDB-930. Patch by Juuso Väänänen. Thanks. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1036380 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18Merged revision 1036294 from trunk:Filipe David Borba Manana
Make sure that after a database compaction the old database reference counters don't get unreleased forever. Closes COUCHDB-926. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1036295 13f79535-47bb-0310-9956-ffa450edef68
2010-11-16After authentication, redirect to the path the user requested, notJan Lehnardt
the one that is used internally. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1035582 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14Allow reduce=false parameter in map-only views.Jan Lehnardt
Patch by Jason Smith. Closes COUCHDB-881. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1035098 13f79535-47bb-0310-9956-ffa450edef68
2010-11-12Merged revision 1034404 from trunk:Filipe David Borba Manana
Yet another ibrowse fix. Patch submitted upstream: https://github.com/cmullaparthi/ibrowse/issues/issue/20 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1034405 13f79535-47bb-0310-9956-ffa450edef68
2010-11-12Merged revision 1034380 from trunk:Filipe David Borba Manana
Use lists:min/1 and lists:max/1 instead of erlang:min/2 and erlang:max/2. The later are not available in earlier OTP releases. Closes COUCHDB-856. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1034381 13f79535-47bb-0310-9956-ffa450edef68
2010-11-10COUCHDB-945 - ensure validation funs are still applied after compaction.Robert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1033642 13f79535-47bb-0310-9956-ffa450edef68
2010-11-10Merged revision 1033456 from trunk:Filipe David Borba Manana
Updated ibrowse to version 2.1.0. It contains fixes for the following important issues: - https://github.com/cmullaparthi/ibrowse/issues/closed#issue/17 - https://github.com/cmullaparthi/ibrowse/issues/closed#issue/15 - https://github.com/cmullaparthi/ibrowse/issues/closed#issue/19 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1033457 13f79535-47bb-0310-9956-ffa450edef68
2010-11-07Merged revision 1032391 from trunk:Filipe David Borba Manana
Bug fix: the separator for media types in the 'Accept' header is a comma. The semicolon separates a media type from its parameters. A more complete solution, which takes into account Q values, was submitted upstream: https://github.com/mochi/mochiweb/issues/issue/21. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1032392 13f79535-47bb-0310-9956-ffa450edef68
2010-11-04Merged revision 1031276 from trunk:Filipe David Borba Manana
Replicator: set Content-Length header when posting to _ensure_full_commit. Same reason as for COUCHDB-932. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1031279 13f79535-47bb-0310-9956-ffa450edef68
2010-11-03Merged revision 1030534 from trunk:Filipe David Borba Manana
Fix ibrowse 2.0.x inactivity timeouts not getting cleared. Patch submitted upstream: http://github.com/cmullaparthi/ibrowse/issues/#issue/17 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1030537 13f79535-47bb-0310-9956-ffa450edef68
2010-11-03We don't have MOVE requests. No need to track them.Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1030432 13f79535-47bb-0310-9956-ffa450edef68
2010-11-03Merged revision 1030405 from trunk:Filipe David Borba Manana
Replicator fix: add Content-Length header to the request that creates the remote DB. Closes COUCHDB-932. Patch by Dale Harvey. Thanks. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1030406 13f79535-47bb-0310-9956-ffa450edef68
2010-10-25Merged revision 1027215 from trunk:Filipe David Borba Manana
GET /db/_design/doc/_info should not trigger an update. Closes COUCHDB-858. Patch by Klaus Trainer. Thanks Klaus. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1027228 13f79535-47bb-0310-9956-ffa450edef68
2010-10-20checkpoints reuse session_id. Patch by tilgovi. COUCHDB-704Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1025574 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12Merge revision 1021811 from trunk:Filipe David Borba Manana
Avoid gen_server call timeout error after compacting a database (seems to happen only for large DBs, but not always). git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1021812 13f79535-47bb-0310-9956-ffa450edef68
2010-10-09Merged revision 1006181 from trunk:Filipe David Borba Manana
Bug fix: when receiving the compact_done message, make sure the gen_server unlinks itself from the compactor process and purges the compactor's exit message from its mailbox. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1006182 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02using an infinity timeout in places where we wait on disk ioJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1003726 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02backport r1003701 (fix db file ref count in view generationJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1003718 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25Merged revision 1001184 from trunk:Filipe David Borba Manana
Bug fix: a user context record was being used instead of a PID. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1001186 13f79535-47bb-0310-9956-ffa450edef68
2010-09-24Merged revision 1000880 from trunk:Filipe David Borba Manana
Upgrading ibrowse from version 1.6.2 to 2.0.1. This version fixes a serious issue regarding streaming of chunked HTTP(S) responses. The issue is that the client occasionally gets blocked or receives a timeout (if inactivity_timeout parameter is given to ibrowse). This fixes part of ticket COUCHDB-491. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1000883 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16Merged revision 997675 from trunk:Filipe David Borba Manana
Correcting ibrowse version number. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@997678 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16Merged revision 997547 from trunk:Filipe David Borba Manana
Replicator bug fix: properly stop link worker processes to avoid noproc exceptions crashing the replicator's changes feed reader process. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@997548 13f79535-47bb-0310-9956-ffa450edef68
2010-09-14Merged revision 997152 from trunk:Filipe David Borba Manana
Replicator bug fix: make sure a replication fails when there's a stale connection to a remote DB's _changes. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@997153 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13Merging revision 985730 from trunk:Filipe David Borba Manana
Bumping ibrowse library to version 1.6.2 (latest). It has a few important bug fixes and new features, such as, for example: 1) fixes https requests not going via the proxy; 2) added SSL support for direct connections; 3) fixes to URL parsing; 4) added option headers_as_is This is important since it fixes replication through a proxy not working with HTTPS. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@996520 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13Merged revision 996492 from trunk:Filipe David Borba Manana
Replicator changes: 1) avoid badmatch exceptions when there's a failure opening a single document from a remote source; 2) add error log messages describing which remote documents couldn't be opened and why; 3) when replications errors can't be encoded as json, convert and send them as json strings Closes COUCHDB-884. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@996493 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13Merged revision 996458 from trunk:Filipe David Borba Manana
Bug fixes: 1) requests to remote /db/_changes were discarding the proxy options; 2) handle redirect code 302 besides 301 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@996460 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13Merged revision 996399 from trunk:Filipe David Borba Manana
Bug fix: add missing case for not preserving HTTP basic auth credentials after a redirect for _changes git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@996401 13f79535-47bb-0310-9956-ffa450edef68
2010-09-12Replicator bug fix: redirect from remote /db/_changes not properly handled ↵Filipe David Borba Manana
(discarded user supplied HTTP Basic auth credentials) git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@996295 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10Merged revision 995631 from trunk:Filipe David Borba Manana
Bug fix: replicator proxy option ignored. Thanks James Jackson for finding and reporting the bug. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@995632 13f79535-47bb-0310-9956-ffa450edef68
2010-08-23Merged revision 988233 from trunk:Filipe David Borba Manana
Replicator: fix authentication failure when replicating design documents that have attachments. Closes COUCHDB-868. Patch by Jason Smith, thanks. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@988234 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10backported r984237Noah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@984238 13f79535-47bb-0310-9956-ffa450edef68
2010-08-08backported from trunk at r983435.Robert Newson
related to COUCHDB-844. Include committed_update_seq in db_info to allow external monitoring of delayed commits. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@983439 13f79535-47bb-0310-9956-ffa450edef68
2010-08-08provide the update_seq in all_docs view even when it is zeroJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@983337 13f79535-47bb-0310-9956-ffa450edef68
2010-08-08fixes COUCHDB-844, delayed commits gets b0rkedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@983333 13f79535-47bb-0310-9956-ffa450edef68
2010-08-07builtin reduce functions more forgiving about trailing whitespace and other ↵John Christopher Anderson
characters git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@983307 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06add Etag header for standalone attachment PUT.Robert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@983051 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03Add support for replication through an HTTP/HTTPS proxy.John Christopher Anderson
backported from trunk r980985 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@982002 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01Merged revision 981348 from trunk:Filipe David Borba Manana
Bug fix - proper RegExp matching to avoid having a case like "hhtml" being considered as "html". git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@981349 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01Merge revision 981343 from trunk:Filipe David Borba Manana
Add missing clause to the case expression to avoid a case_clause Erlang exception. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@981344 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01Merge revision 981341 from trunk:Filipe David Borba Manana
Bug fix - RegExp matching the atom 'undefined'. According to the HTTP 1.1 spec, if the Accept header is not specified by a client, it means the client accepts all media types. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@981342 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29fix the underlying issue that was giving replication problems attempting to ↵John Christopher Anderson
push design docs as a non-admin. this is what my reverted commit should have been git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@980320 13f79535-47bb-0310-9956-ffa450edef68
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-29more relaxed verification of SSL chains, COUCHDB-840Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@980270 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28don't require integer seqnums in the changes feed, COUCHDB-838Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@980266 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