summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2009-08-04Initial check-in of OAuth and cookie authentication.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800938 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04Rookie mistake. Needed to force a compiler error to determine the difference inPaul Joseph Davis
function signature. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800912 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04log bind_address and port after startup, helps with COUCHDB-393Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800884 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04encode slashes in db names in Location response header after database ↵Jan Lehnardt
creation, move couch_rep:url_encode/1 to couch_util:url_encode/1, closes COUCHDB-411 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800883 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04Proper fix because JS_VERSION cannot distinguish between 1.8.0 and 1.8.1Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800873 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04Fix couch_js.c compilation with builds of non-threadsafe Spidermonkey 1.7Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800843 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04search for jsapi.h in in $includedir and $includedir/js as a fallback, patch ↵Jan Lehnardt
by Alessandro Decina git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800757 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04add compile-time conditionals to support the upcoming Spidermonkey 1.8, swap ↵Jan Lehnardt
searching for libjs and libmozjs, patch by Alessandro Decina, closes COUCHDB-288 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800750 13f79535-47bb-0310-9956-ffa450edef68
2009-08-01implement longpolling for _changes, unify _changes-mode parameters, patch by ↵Jan Lehnardt
Benoit Chesneau, closes COUCHDB-241 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@799862 13f79535-47bb-0310-9956-ffa450edef68
2009-08-01enable include_docs=true for list functions, patch by Mark Hammond, closes ↵Jan Lehnardt
COUCHDB-444 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@799835 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29Fix for COUCHDB-434. Only reassign previous revid inside the updater process.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@799093 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27corrected caseNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@798283 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24reassemble split chunks in changes feed, add all() exportAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797553 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24speed up json encoding, patch by Brian Candler, closes COUCHDB-399Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797548 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24comment on jchris comment on not sending Content-Length for attachment GETsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797400 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23Apply patch by Volker Mische to improve the sidebar toggle animation. Really ↵Christopher Lenz
closes COUCHDB-425 now. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797252 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23Updated local_dev.ini build target as per Noah's suggestion.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797216 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23Make local_dev.ini a build product.Paul Joseph Davis
Finally fixing the local_dev.ini problem. local.ini will be copied over to local_dev.ini anytime the latter doesn't exist. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797097 13f79535-47bb-0310-9956-ffa450edef68