summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd_db.erl
AgeCommit message (Collapse)Author
2010-02-01fix unused variable warnings, remove unused code.Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905438 13f79535-47bb-0310-9956-ffa450edef68
2010-02-01Database-level security.John Christopher Anderson
This patch builds on the DB-admins feature to store lists of database admin and reader names and roles, as well as a security object which can be used for configuration in validation functions. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905436 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29Allow storing attachments in compressed form. Closes COUCHDB-583. Thanks ↵John Christopher Anderson
Filipe Manana git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@904650 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23show conflicts in changes filters. Patch by Lena Herrmann. Closes COUCHDB-630Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@902422 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18normalize userCtx name and roles, also, no log in via a conflict docJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900275 13f79535-47bb-0310-9956-ffa450edef68
2010-01-07merge account branch to trunkJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@896989 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22remove show from db doc GET handler, completing flip-flop on COUCHDB-404John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893261 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22move query server to a design-doc based protocol, closes COUCHDB-589John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893249 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16Provide Content-MD5 header support for attachments.Paul Joseph Davis
Fixes COUCHDB-558. Thanks to Filipe Manana we now have checks for attachment transfer integrity using the Content-MD5 header (or trailer). Use of this integrity check is triggered by specifying a Content-MD5 header in your request with a value that is a base64 encoded md5. For requests that are using a chunked Transfer-Encoding it is also possible to use a trailer so that the Content-MD5 doesn't need to be known before transfer. This works by specifying a header "Trailer: Content-MD5" and then in the final chunk (the one with a size of zero) you can specify a Content-MD5 with exactly the same format as in the request headers. See the ETap test 130-attachments-md5.t for explicit examples of the request messages. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@891077 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02removed add_fun optimization for filters, this provides better concurrency ↵John Christopher Anderson
at the cost of some function transfer/eval overhead, which will be optimized in a future patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@886334 13f79535-47bb-0310-9956-ffa450edef68
2009-11-30work on COUCHDB-582, fixes issues with filtered longpoll requests closing earlyJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@885329 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-11-15Testing of incremental attachments and more testing of multipart/handling.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@836324 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14Better testing of multipart/relatedDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@836087 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13Remove debigging messagesDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@836032 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13Initial check-in of APIs for multiple/related supported and incremental ↵Damien F. Katz
replication of only changed attachments. Needs more far more testing and to be hooked up the replicator. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@835981 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10Add doc id validation when creating a new document with theJan Lehnardt
standalone attachment API. Closes COUCHDB-565. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@834436 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05typo, thanks David CoallierJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833038 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05add safety net for code accidents where the document id in a doc delete ↵Jan Lehnardt
request got missing accidentally git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833036 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03Added batching of multiple updating requests, to improve throughput with ↵Damien F. Katz
many writers. Also removed the couch_batch_save module, now batch requests are simply saved async as immediately, batching with outhr updates if possible. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832550 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03Allow updating a doc along with an attachment when posted from anJan Lehnardt
HTML form. Patch by Robert Newson. Closes COUCHDB-436. We still need tests for the entire form-upload function. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832427 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27Fixed a minor bug with attachments of zero length.Paul Joseph Davis
The Erlang PID handling the request would crash after headers were sent so that the browser never noticed but my cURL client did. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@830056 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26asking for a missing rev with ?rev or ?open_revs was a 500 responseAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829919 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21bugfix for _changes when DB is deleted mid-responseAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817398 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16include_docs now take an _id (as well as a _rev) in the emitted value, to ↵John Christopher Anderson
load docs other than the one doing the emitting. This means you can have one doc list a set of other docs to load in a single query. Enjoy! git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815984 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16add limit to _changesJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815629 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15fix attachments with an undefined Content-Length header and no TE, patch by ↵Jan Lehnardt
Benoit Chesneau, closes COUCHDB-497 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815308 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14View refactoring and addition of raw collationoption. Significant ↵Damien F. Katz
performance improvements in view indexer. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814893 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14finish committing my changes adventure. pardon the dust.John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814828 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14rollback mixed up commit, builds nowJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814803 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14support for deletions in changes feedJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814787 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14removed _all_docs_by_seq in favor of _changesJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814778 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11Refactoring of endkey code in views and btrees. End key functionaility is ↵Damien F. Katz
now handled inside the btree code, simplfying calling code and making it trivial to add new collation options git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814078 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09choice of uuid algos for better insert perf. Closes COUCHDB-465. Thanks ↵Adam Kocoloski
rnewson, bitdiddle git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@813051 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28guard against non-existing filters in _changesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808716 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27send deleted docs to _changes filtersAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808574 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25_ensure_full_commit?seq=N to ensure everything up to N is committedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807459 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18continuous _changes are now newline-delimited JSON Objects (no commas)Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@805430 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-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-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-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-12rollback _conflicts view patchAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803690 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-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-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-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-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