summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd_show.erl
AgeCommit message (Collapse)Author
2010-06-24use JSON content type in replicator, require it in the _bulk_docs and other ↵John Christopher Anderson
POST apis git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957422 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02trailing whitespace pedantryJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950545 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04use keysearch BIF to search ejson props. Closes COUCHDB-747Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@940708 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08fix last straggler view update_seq bugs, thanks tisba and bitdiddle for the ↵John Christopher Anderson
report git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@931731 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07somehow I missed this badarity bug running the test suite last night. ↵John Christopher Anderson
completes the last (update_seq) commit. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@931650 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07include update_seq in view responses, patch via Joscha Feth, (mostly) closes ↵John Christopher Anderson
COUCHDB-650 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@931439 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28typo.Benoit Chesneau
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@928364 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28allows client to retrieve the revision of document updated via _update,Benoit Chesneau
by providing it in headers. Header is named "X-Couch-Update-NewRev. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@928361 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28treat deleted docs as nonexistant docsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917104 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28revert accidental commitJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917102 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28Merge branch 'show-deleted-docs' into trunkJan Lehnardt
* show-deleted-docs: treat deleted docs as nonexistant docs Revert "Avoid replication task crashes by imporoving timeout handling." git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917098 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04re-enable 404 handling in show functions while retaining user-friendly error ↵Jan Lehnardt
behaviour git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906721 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04remove empty linesBenoit Chesneau
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906427 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04fix COUCHDB-638.Benoit Chesneau
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906423 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-11-30ETags on POSTs to _view and _list should depend on Keys. COUCHDB-586Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@885529 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-10-31List functions weren't returning OS processes.Paul Joseph Davis
Needed to add a call to couch_query_server:stop_map_doc/1 to return outstanding OS processes back to the query servers pools. This was causing some awesome errors by keeping the query_servers PID linked to the socket PID, which caused errors in apparently unrelated requests as the query_servers daemon was restarted on config changes. Also needed to move where the query servers were requested in list functions involving reduces. Map only lists were fine though. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@831502 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27Make it harder to accidently terminate chunked resposnes by requiring ↵Damien F. Katz
callers to explicity call last_chunk(Req) and ignoring send_chunk calls with no data. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@830353 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24Fixed the test for couch_stats_aggregator.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829456 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24Update functions can now handle any HTTP verb, excepting GET and HEADJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829419 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19Fix bug when lists use two design docs.Paul Joseph Davis
The language was being pulled from the wrong doc in the pair. Also removed some unused variables. Added a test in list_views.js git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@826692 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-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-08-17allow list function and view function to be in different design docs, patch ↵Jan Lehnardt
by Mark Hammond, closes COUCHDB-446 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@805201 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-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-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-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-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-20Initial checkin of _changes filters. The prime weak-spot for this approach ↵John Christopher Anderson
is that it maintains an OS-process per connected filtered _changes consumer. I'm pretty sure we'll be able to work around this without changing the API, but it'll involve a lot of OS-process bookkeeping. Those enhancements should generally improve show & list performance as well. Punting on them for now, first wanted to get _changes filters implemented so people could give feedback. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@795687 13f79535-47bb-0310-9956-ffa450edef68
2009-07-14wheeeeeeeeNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@794057 13f79535-47bb-0310-9956-ffa450edef68
2009-07-10Apply patch from Benoit Chesneau's COUCHDB-404John Christopher Anderson
Restores 0.8-style /db/_view view urls and adds an option to render views and documents as other formats like: /db/docid?show=blog/post /db/_view/blog/posts?list=index We're retaining the longer _design/appname paths as well because that resource is valuable for reverse proxies and rewriters. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@792771 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08Fixes COUCHDB-389Paul Joseph Davis
Provide an offset calculation for all view responses. Thanks Brad Anderson. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@792013 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06trimmed trailing whitespaceNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@791350 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18Fixes COUCHDB-383 - Ignore extra URL parameters.Paul Joseph Davis
No one opposed the switch so here it is. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@786337 13f79535-47bb-0310-9956-ffa450edef68
2009-06-14merge list-iterator branch to trunk. changes JavaScript _list APIJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@784601 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10Refactor the make_view_fold_function stuff. Added a proper Acc to both map ↵John Christopher Anderson
and reduce view folds. Cleaned up some pattern matchers. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773319 13f79535-47bb-0310-9956-ffa450edef68
2009-04-22Refactoring the view URL parameter parsing.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@767543 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18refactor main.js into many files and improve show/list error handlingJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@766383 13f79535-47bb-0310-9956-ffa450edef68
2009-03-28always load _conflicts in _show functionsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@759588 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13Commit Damien's rep_security branch to trunk. John Christopher Anderson
Changes bulk_docs conflict checking. Breaks file format, see mailing list for data upgrade procedure, or http://wiki.apache.org/couchdb/Breaking_changes git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@753448 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09merge design doc resource branch. breaking changes to _view query paths. John Christopher Anderson
closes COUCHDB-280 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@751813 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06validate reduce view list queries, make query_parse_error response code 400John Christopher Anderson
thanks Jan, thanks Jason Davies. closes COUCHDB-283 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750969 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05allow multi-key POST requests for _list. John Christopher Anderson
closes COUCHDB-269. thanks Jason Davies git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750565 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04refactor show 404 handling doc-loading special case out of couch_httpd_db.erlJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749902 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04allow for handling 404s in document show functionsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749852 13f79535-47bb-0310-9956-ffa450edef68
2009-02-28supply etags for reduce view listsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748754 13f79535-47bb-0310-9956-ffa450edef68
2009-02-25Support for reduce views in _list. closes COUCHDB-260. Thanks Jason Davies.John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747679 13f79535-47bb-0310-9956-ffa450edef68