summaryrefslogtreecommitdiff
path: root/src/couchdb
AgeCommit message (Collapse)Author
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-29write config changes much faster - see COUCHDB-545. Thanks Gustavo NiemeyerAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@830832 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28reboot replication from last checkpoint if DB is compacted or server restartsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@830737 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-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-26_changes response might have completed alreadyAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829920 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-10-26replication client should use inactivity timeout on changes feedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829871 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-24use couch_util:priv_dir() b/c it works in dev mode tooAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829432 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-24Move stat descriptions out of the config.Paul Joseph Davis
This lists stat descriptions in an Erlang term file to avoid abusing the config system. Uses a file in CouchDB's priv directory that is a list of three-tuple terms. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829304 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23improved speed and concurrency of config lookupsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829123 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22Improve OAuth error message for missing tokens.Paul Joseph Davis
Added a test in oauth.js git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@828836 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20typoJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@827720 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-10-18log external reqests like any other requestsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@826345 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17have 'make dist' build a windows installer on windowsMark Hammond
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@826173 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15Add support for other OAuth signature methods in replication client.Jason David Davies
To use, set auth.oauth.signature_method to either "HMAC-SHA1" (the default if not specified) or "PLAINTEXT". git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825693 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15Only check for admin user if we are trying to create a database. Thanks to ↵Jan Lehnardt
Bob Dionne for testing the patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825485 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15also fix attachment redirectsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825407 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15bugfixes for redirects in replication and iolists in OAuth qs paramsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825401 13f79535-47bb-0310-9956-ffa450edef68
2009-10-14Fix a bug in the couch.app generation.Paul Joseph Davis
The couch.app module list was using '*.erl' to list the modules. This causes issues if weird backup files are introduced into that directory. It appears that copying to and from HFS file systems can result in files with a prefix of '._' so that we had '._couch_server.erl' amongst other things which would then be in the couch.app module list, which would then prevent the server from booting properly. As in, it would just halt before any CouchDB code was ever run. The fix is to make the module list use "couch*.erl" instead. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825268 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13Add more information to the view info objects.Paul Joseph Davis
View info is available at the URL: http://127.0.0.1:5984/db_name/_design/ddocid/_info New fields include: updater_running [true|false] : Whether the view is being built waiting_commit [true|false] : Whether this view is a head of db commits waiting_clients [integer] : How many clients are waiting on this view update_seq [integer] : The update sequence that has been indexed purge_seq [integer] : The purge sequence that has been processed Other fields for reference: signature [string] : The md5 signature of the design document's functions language [string] : The language of the design document disk_size [integer] : Number of bytes the view file occupies on disk compact_running [boolean] : Whether the view is currently being compacted git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824970 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13Fix partial view updating regression.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824968 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13Fix new create_target replication option when OAuth is being used.Jason David Davies
Closes COUCHDB-525. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824954 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12Send 400 error when bad OAuth token is received.Jason David Davies
This closes COUCHDB-522. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824290 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12Added handy log message for debugging OAuth behind proxies.Jason David Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824268 13f79535-47bb-0310-9956-ffa450edef68
2009-10-11add create_target:true option to _replicate that creates the target databaseJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824029 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09allow case-insensitive content-type from external, and other cleanupAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@823378 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05friendlier error message on bad log config file permissionsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@821856 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03Fixes COUCHDB-517 UUID server restarts.Paul Joseph Davis
Patch by Robert Newson to avoid restarting the UUID gen_server on configuration changes which leads to OTP supervisor shutdowns when exceeding the restart frequency. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@821402 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02Add OAuth support for "https" URL scheme when using SSL proxy.Jason David Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@821059 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02replication bugfixes, see COUCHDB-516Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@820851 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30_uuid ETags were coming out as random binary noise. fixes this so they are ↵John Christopher Anderson
proper strings. Needs backporting to 0.10.x. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@820495 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30more OAuth fixes, in particular for requests with query-string parametersAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@820469 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30fix replication from DB protected by OAuth and require_valid_user=trueAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@820344 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28we were skipping 1/1000 updates replicating old servers w/o _changesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819436 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26Fix the UUID's test failures when clocks are out of sync.Paul Joseph Davis
Changes the tests for cache busting by using ETag's. Left the date tests commented out just in case someone thinks I'm crazy and sees a better solution. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819091 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25Fix speling.Jason David Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818930 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24have cookie auth use ini-file adminsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818437 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24update the AuthSession cookie even if no Set-Cookie is already presentAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818357 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23Include peer in req object for externals: _show, _list, _update etc.Jason David Davies
Closes COUCHDB-470. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818316 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23reject attempts to upload invalid UTF-8 JSON. Closes COUCHDB-345Adam Kocoloski
This patch requires JSON to be encoded using UTF-8. In the future we will accept other encodings. Thanks Joan Touzet and James Dumay for the bug reports and Curt Arnold for patches and discussion. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818249 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23give the server a second to terminate (suppress spurious stats warnings)Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818132 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22_externals should respect os_process_timeout settingAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817749 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21attempt at gentler replication shutdown when one of the DBs is deletedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817403 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21quietly start a new connection if changes feed is closedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817400 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-20remove some unneeded opening, closing and passing around of DbJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817003 13f79535-47bb-0310-9956-ffa450edef68