summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-08-16bump erlang version requirementJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804699 13f79535-47bb-0310-9956-ffa450edef68
2009-08-16Make POST's reflect a provided _id member.Paul Joseph Davis
Fixes COUCHDB-468 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804555 13f79535-47bb-0310-9956-ffa450edef68
2009-08-16Update our Erlang VM requirement to 5.6.5 (R12B5). Also fixes the remaining twoPaul Joseph Davis
compiler warnings. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804552 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-15replace regexp with re. Thanks Kim Shrier, Gordon Stratton. Closes COUCHDB-245Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804428 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15delayed commits are now a config option, off by default. Closes COUCHDB-449Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804427 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14update allowed methods to reflect realityAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804379 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14Fixes COUCHDB-422 - Reject invalid _local doc ids.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804269 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14Fixes COUCHDB-429 - Error durring paging.Paul Joseph Davis
Patch by Jason Davies git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804255 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14benoitc's attachment PUT patch passes tests for me. Closes COUCHDB-461John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804094 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14apply Benoit's patch fixing attachment content-length handling for GET from ↵John Christopher Anderson
COUCHDB-461 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804087 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13trivial change to replicator request headers. Closes COUCHDB-419Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804007 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12rollback _conflicts view patchAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803690 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12Introduces native Erlang query servers. Closes COUCHDB-377John Christopher Anderson
Thanks Mark Hammond and Paul Davis for doing most of the work, and Michael McDaniel for the inspiration. There is still room for improvement on the APIs exposed to the Erlang views, as well as likely a whole lot of work to be done to increase parallelism. But the important part now is that we have native Erlang views. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803685 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12add native /db/_conflicts view, patch by Adam Kocolosk, closes COUCHDB-462Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803663 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12add to gitignoreJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803424 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12recloses COUCHDB-4 (view etags) thanks to Matt Goodall for the tests. keep ↵John Christopher Anderson
'em coming! git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803358 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11silence compiler warnings, don't use unused variablesJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803325 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11roll back streaming _bulk_docs b/c of a race conditionAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803303 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11remove merge fileJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803288 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11and the test file itself :)John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803246 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11Initial commit of _update handler. Thanks to Paul Davis, Jason Davies for ↵John Christopher Anderson
code and others for discussion. The _update handler accepts POSTs to paths like: /db/_design/foo/_update/bar and PUTs which include docids, like: /db/_design/foo/_update/bar/docid The function signature: function(doc, req) { doc.a_new_field = req.query.something; return [doc, "<h1>added something to your doc</h1>"]; } The tests in update_documents.js are fairly complete and include examples of bumping a counter, changing only a single field, parsing from (and returning) XML, and creating new documents. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803245 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11more work on _bulk_docs streaming during replication.Adam Kocoloski
I think this effort is kind of a dead end, at least if we're serious about that 4GB maximum document/attachment size. Presently push replication will have trouble with attachments larger than a few MB because of the inactivity_timeout we've set in ibrowse. We'll push the data, but then close the connection after 30 seconds while the target is still decoding. We should focus our efforts instead on a way to push attachments without Base64. I don't know what to say about 4GB _documents_, I don't see how we could ever really support those now even without replication. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803220 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11fix pull replication w/o _changes (for 0.9.x remote sources)Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803192 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11whoops, process dictionary certainly won't work thereAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802987 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11split into multiple requests so target doesn't buffer too muchAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802986 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11max chunk size of 4G, not 64kAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802983 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-10new replicator using _changes feed for continuous replicationAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802888 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-10suppress obsolete list() guard warningAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802886 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10Add LICENSE entries for ibrowse and erlang-oauth, patch by Jason Davies, ↵Jan Lehnardt
closes COUCHDB-459 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802763 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10fix speling, thanks JasonJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802680 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10remove leftover line from testAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802636 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09oops, whitespaceAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802549 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09next piece of new replicator -- missing_revs bufferAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802548 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08update rep_changes_feed to use feed=continuous and rep_httpcAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802416 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
2009-08-06upgrade ibrowse to 1.5.2. Closes COUCHDB-451Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801657 13f79535-47bb-0310-9956-ffa450edef68
2009-08-06batch_save test wasn't being installedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801649 13f79535-47bb-0310-9956-ffa450edef68
2009-08-06batch=ok was leaking processes and ignoring intervals. Closes COUCHDB-454Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801645 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05The RSA SHA1 Oauth module was breaking trunk for older versions of the ErlangPaul Joseph Davis
VM. Since we don't actually use it, I'm removing it from the build until we add a ./conifgure option or we update our Erlang version requirement. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801456 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05Update svn:ignore for erlang-oauth directory and erl_crash.dumpPaul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801454 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05proper handling of 406 Not Acceptable errors in list and show functionsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801345 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05add mimeparse.js to license.skipJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801273 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05ignore missing license header in erlang-oauthNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801059 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05added NOTICE for Erlang OAuthNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801058 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05Upgraded JavaScript Accept header handling to make it useful.John Christopher Anderson
After user@ thread with Adam Jacob [1] http://tinyurl.com/kuhl2j I realized that giving users the option to set a server preference of mime-types was crucial. Without ordering, you see nasty side effects like a browser getting an Atom feed by default. With ordering, you can ensure that browsers get HTML, API clients see XML, and Ajax apps use JSON in a no-hassle way. Example new API: function(doc, req) { provides("html", function() { return "Hello " + doc.name + "."; }); provides("xml", function() { var xml = new XML('<xml></xml>'); xml.hello = doc.name; return xml; } }; If a client sends an Accept header like "application/xml, text/html" this will return html. If the client sends just "application/xml" they will get xml. respondsWith() has been removed. I don't think it's worth the cost to maintain a parallel implementation just to be deprecated as buggy. This patch also continues us on the path to a cleaner, more organized query server. Cheers and enjoy. [1] http://mail-archives.apache.org/mod_mbox/couchdb-user/200907.mbox/%3cb8602b350907241906l7c7f97fdg9d78facacd8605fd@mail.gmail.com%3e git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801056 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04Move mimeparse.js to it's own file, add to NOTICE as an external library.John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@801018 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04apply patch for chunking error from ibrowse 1.5.2Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800950 13f79535-47bb-0310-9956-ffa450edef68