summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2009-07-23etap tests should be executableAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797093 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23use spawn to avoid recursive gen_server callsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797092 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23Update svn:ignore for Makefile build products.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797056 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23Fixes error on first boot after adding an admin.Paul Joseph Davis
hash_admin_passwords() was being called after registering a config callback which caused couch_server to die when first booting. Just placed the first call before registering the callback. Thanks Bob Dionne. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797055 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23Fixes etap tests for recent updates.Paul Joseph Davis
Thanks Bob Dionne git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797053 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23Allow the Futon sidebar to be moved out of the way. Based on idea and patch ↵Christopher Lenz
by Volker Mische. Closes COUCHDB-425. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797024 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22Fix automatic group=true on reduce views in Futon, which was only getting ↵Christopher Lenz
applied erratically depending on timing. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796898 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22Fix off-by-one error in Futon view paging. Thanks to Jason Davies for the ↵Christopher Lenz
patch. Closes COUCHDB-428. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796895 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22Ignore whitespace in reduce code textarea in Futon. Closes COUCHDB-328.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796888 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22Apply patch by Jason Davies that improves how the view menu is populated: ↵Christopher Lenz
only one HTTP request (thanks to `include_docs`), and design docs and view names are sorted alphabetically. Closes COUCHDB-426. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796885 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22various bugfixes and improvements for view compactionAdam Kocoloski
View compaction was broken after the switch to signature-based index files, but we don't have tests for it yet so we didn't notice. I also committed a few changes that should make compaction faster and more robust: * commit the header immediately after compaction finishes. We used to wait 1 seconds, but if the server restarted in that second the index would be reset. * unlink from old index file at the end. Prevents process crashes that could couch_view (and with the delayed commit would sometimes cause index resets). * don't wait for running view updates to finish before replacing old view index file. If an update is running, restart it and point it to the new view group. This alleviates the situation where the view compaction goes into a busy wait, printing "still behind main file" 1000s of times to the log, and generally makes compaction finish more quickly. * better logging git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796805 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22Avoid usage of `Array.indexOf` function, which is not available on IE (and ↵Christopher Lenz
not yet part of any final ECMAScript standard). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796658 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22Change document creation in Futon so that it no longer prompts for a ↵Christopher Lenz
document ID, but simply opens the document page for an empty (and unsaved) document, and allows you to modify the ID. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796635 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21Fix for COUCHDB-318: when adding or renaming a field in Futon, check that a ↵Christopher Lenz
field with the same name does not already exist. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796548 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21Minor cosmetic cleanup for the custom test page: highight active navitem in ↵Christopher Lenz
sidebar, no toggle icon, resizable text area. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796544 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21Fix for compatibility of Futon with design documents that have slashes in ↵Christopher Lenz
the document ID or a view name. Closes COUCHDB-408 (again). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796541 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21Put the database name in the Futon sidebar in the link title, so it is still ↵Christopher Lenz
available in its entirety as a tooltip, even when the link text is cut off. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796537 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21Make the view-selection and jump-to-document widgets at the top of the Futon ↵Christopher Lenz
database page a bit more compact. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796535 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21Avoid wrapping of long database names in the Futon sidebar.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796269 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21One line patch to fix _local docs.Paul Joseph Davis
Accounts for _local docs not having conflict resolution in Futon. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796246 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21fix view selection in Futon for Opera, patch by Alexander Uvarov, closes ↵Jan Lehnardt
COUCHDB-369 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796234 13f79535-47bb-0310-9956-ffa450edef68