summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd.erl
AgeCommit message (Collapse)Author
2009-01-21don't log thrown errors in http requests, just things like badmatch etcJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@736194 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19fix for COUCHDB-214 (design docs on dbs with slashes)John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@735850 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19catch all error handling for HTTP requestsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@735803 13f79535-47bb-0310-9956-ffa450edef68
2009-01-15Support for streaming attachment writes.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@734849 13f79535-47bb-0310-9956-ffa450edef68
2009-01-03Added decent reporting of Mochiweb start errors (eaddrinuse etc)John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@731121 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10view group state gen_server. thanks damien and davisp.John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@724946 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09user name should be binary for jsonJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@724786 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20Nearly completed security/validation work. Still needs replication testing.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@719160 13f79535-47bb-0310-9956-ffa450edef68
2008-11-17More security and validation work. Still incomplete.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@718311 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11Check in of initial validation and authorization work. This work is ↵Damien F. Katz
incomplete, as there is not yet any way of restricting who can update the design docs. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@713132 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22First check-in of admin http authentication and authorization.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@706848 13f79535-47bb-0310-9956-ffa450edef68
2008-10-09make couch_httpd:send_error/4 publicJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@703274 13f79535-47bb-0310-9956-ffa450edef68
2008-10-06tiny whitespace fix for 409 database errorJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@701960 13f79535-47bb-0310-9956-ffa450edef68
2008-10-02HTTPd refactoring. Moved most code out of couch_httpd into associated ↵Damien F. Katz
modules (couch_httpd_view, couch_httpd_db, couch_httpd_misc_handlers). Also a fix to removed previous doc_by_seq index entries on compaction retry. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@701173 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23Changed call to Req:recv_body() by Damien's request.Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@698260 13f79535-47bb-0310-9956-ffa450edef68
2008-09-20reduce=false closes COUCHDB-76John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@697427 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16Add HTTP API for getting the complete config, and add a page to Futon that ↵Christopher Lenz
displays the configuration. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@696041 13f79535-47bb-0310-9956-ffa450edef68
2008-09-13Changes and refactorings to couch_configDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@694989 13f79535-47bb-0310-9956-ffa450edef68
2008-09-11Check-in of document purge functionality.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@694430 13f79535-47bb-0310-9956-ffa450edef68
2008-09-09Fix for attachment content-type conversion from/to binary in RESTful API.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@693435 13f79535-47bb-0310-9956-ffa450edef68
2008-09-08Fix retrieval of specific document revisions, which needed to be updated for ↵Christopher Lenz
the internal change to binaries. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@693115 13f79535-47bb-0310-9956-ffa450edef68
2008-08-31Fix the config HTTP API for the changed JSON representation, remove the POST ↵Christopher Lenz
handling for setting option values (leaving only PUT), and add a GET /_config/section handler that allows enumerating the options in a section. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690670 13f79535-47bb-0310-9956-ffa450edef68
2008-08-31Merged json_term_changes branch back into trunk.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690668 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30Rename 'module' to 'section', and 'variable' to 'option' in the config code.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690595 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30Implement attachment uploading in Futon.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690590 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30- Rename configuration options and sections to allow for a nicer .ini file ↵Jan Lehnardt
and HTTP API calls. - Enable .ini parser to read variable assignments with spaces around the '='-sign. - Remove inadequate comment. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690513 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30Some cosmetic cleanup (removed trailing whitespace, fixed indentation, make ↵Christopher Lenz
the test runner script executable). git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690487 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20Merge runtimeconfig branch back into trunkJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@687336 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12HTTP COPY & MOVE for documents with testsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@685171 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08Idempotent document creation support, new HTTP api to generate UUIDs and ↵Damien F. Katz
support in the couch.js library for using them. Creating uuids client side ensure that document creation happens only once, despite automatic network retries. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@684092 13f79535-47bb-0310-9956-ffa450edef68
2008-08-07Fix for bug COUCHDB-100.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@683704 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05Fixed restart testing by making it far less likely a HTTP client will get a ↵Damien F. Katz
network error on a restart request. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@682809 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05Added concurrent open db limit and a LRU cache for closing old databases ↵Damien F. Katz
when limit reached (configurable via MaxDbsOpen var in couch.ini). Refactored db update code in couch_db.erl into couch_db_updater.erl. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@682560 13f79535-47bb-0310-9956-ffa450edef68
2008-07-29Fix for problem with count query arg in grouped reduce views. Previous fix ↵Damien F. Katz
would keep enumerating over subsequent view results despite not returning them. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@680796 13f79535-47bb-0310-9956-ffa450edef68
2008-07-25Fix to previous commit r679840.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@679843 13f79535-47bb-0310-9956-ffa450edef68
2008-07-25Use a method compatible with Erlang R11B to put the Erlang OTP version in ↵Christopher Lenz
the HTTP Server response header. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@679840 13f79535-47bb-0310-9956-ffa450edef68
2008-07-15fix for attachment editing when their are conflictsDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@677087 13f79535-47bb-0310-9956-ffa450edef68
2008-07-10Make RESTful attachment API concurrency aware and the code a little more ↵Jan Lehnardt
concise (thanks Damien!) git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@675699 13f79535-47bb-0310-9956-ffa450edef68
2008-07-06Add RESTful API for document attachments as per ↵Jan Lehnardt
http://groups.google.com/group/couchdb/browse_thread/thread/c84c5f35afb5db2a with not yet comprehensive tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@674334 13f79535-47bb-0310-9956-ffa450edef68
2008-07-03Expose endkey_docid as a view query option through the HTTP API (including ↵Jan Lehnardt
tests). git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@673631 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24Change `Server` HTTP header to say CouchDB instead of MochiWeb, and add a ↵Christopher Lenz
`Cache-Control: must-revalidate` header to all JSON and attachment responses. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@671151 13f79535-47bb-0310-9956-ffa450edef68
2008-06-23Apply patch by Chris Anderson that fixes an edge case in the HTTP view ↵Christopher Lenz
interface resulting in an invalid JSON response body. Closes COUCHDB-84. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@670774 13f79535-47bb-0310-9956-ffa450edef68
2008-06-05Added reduce/combine example. Fixed broken node chunking with very large ↵Damien F. Katz
keys/reduction values git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663786 13f79535-47bb-0310-9956-ffa450edef68
2008-06-05Remove /db/_search API call. This will be maintained in the lucene-search ↵Jan Lehnardt
branch and merged back after a 0.8 release when things got more stable. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663744 13f79535-47bb-0310-9956-ffa450edef68
2008-06-04Use linebreaks between rows for view results with a negative count value, ↵Christopher Lenz
same as for a positive value. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663345 13f79535-47bb-0310-9956-ffa450edef68
2008-06-04Enable the use of an unencoded slash in the URL of design documents. Closes ↵Christopher Lenz
COUCHDB-49. Thanks to Paul Davis for the patch. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663055 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02Increase the request body size limitations on bulk_docs and document POST to ↵Christopher Lenz
4GB. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@662591 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29Grouped reduce support. Needs performance work.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@661476 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26Experimental functionality to increment database update seq, might go away, ↵Damien F. Katz
use at own risk. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660315 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26Add back /_restart URL that got lost in the transition to MochiWeb.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660183 13f79535-47bb-0310-9956-ffa450edef68