summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Close view files cleanly on DB create/delete1346-fix-windows-indexing-hangAdam Kocoloski2012-12-021-1/+3
| | | | | | | | | | | | The shutdown_sync was actually interfering with a clean shutdown initiated by the index processes themselves when they received a 'DOWN' message from their monitoring of the DB process. The explicit 'delete' cast message in this patch is very probably redundant, but it makes the intent clear. The important bit is to let the index process terminate *and* get confirmation of the termination before attempting to nuke the directory. COUCHDB-1364
* Make dependency on unistd.h specific to HAVE_CURL instead in the whole fileDave Cottlehuber2012-12-011-1/+1
| | | | | - introduced in COUCHDB-1338 - allows building cleanly on Windows without cURL
* Deprecate E4XJan Lehnardt2012-12-011-0/+2
|
* fix formatting in NEWSJan Lehnardt2012-12-011-2/+2
|
* COUCHDB-430,514,764 Fix list HTTP header handling.Caleb Case2012-11-284-26/+85
| | | | | | | | | | | | | | | | | | | | | | | | | Currently calls to getRow() cause the HTTP headers to be sent immediately back to the client. This happens even if an error is thrown after the getRow(), but before any send(...) or start(...). Worse, if a list throws an exception an extra, invalid header is sent to the client (resulting in various bad behavior). Erlang list handling will now wait until data has been sent BEFORE sending the HTTP headers to the client. If an error is reported it will result in an HTTP error code as expected. This does not change the behavior of errors thrown AFTER data has been sent: They will still result in an HTTP 200 even if an error is reported. The line protocol between Erlang and os processes has been extended to support an optional Header field on "chunks" and "end". The javascript list handling has been updated to use this if a new header is set via start(...). This makes it possible to begin processing with getRow(), but later reset the headers via start(...). Again, if data has been sent(...) the new headers will NOT take effect. COUCHDB-430 COUCHDB-514 COUCHDB-764
* Return X-Couch-Id from show functions if doc is createdRobert Newson2012-11-212-2/+6
|
* test for 1608Robert Newson2012-11-211-0/+8
|
* Revert "Document Id and Rev in response headers" patchRobert Newson2012-11-213-28/+3
| | | | | | | | | | | This patch breaks some update handlers and also assumes that any JSON response body with a property called 'id' is the actual id of a created or updated document. This reverts; 0a64f310b43b90176bb59040e7e866978c429c88 4edbb93d2271ac1eb82f4d2bb072b8bdf6829f85 b9af7ea506ac95034a91951f29e1f4249ef4317c
* Allow a final config override to be specified via environment.Dustin Sallings2012-11-191-0/+4
| | | | | | | | | | | | | This lets the OS X startup define this user's config which will be used for editing and what-not. Forward port from 1.2.0 Change-Id: I03ebce57030457e25c9c8cb60a679547a0cd84bf Reviewed-on: http://review.membase.org/6380 Tested-by: Dustin Sallings <dustin@spy.net> Reviewed-by: Steve Yen <steve.yen@gmail.com> Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
* Make cardinality of result explicit, remove join hacksRobert Newson2012-11-191-7/+7
|
* Support auth cookies with : charactersRobert Newson2012-11-181-1/+1
| | | | | | | | | | The parts of a couchdb authentication cookie are separated by colons. One of these parts can contain colons and, more rarely, runs of colons. The string:tokens function silently drops any empty token, thus giving a spurious failure for valid input. The fix changes this mechanism to one that losslessly decodes this part. COUCHDB-1607
* Add couch_httpd_misc_handlers:handle_file_reqJoel Reed2012-11-141-0/+6
| | | | | | | | | | | | This can be used to serve up files like /crossdomain.xml from a CouchDB instance. For example, you could add: [httpd_global_handlers] crossdomain.xml = {couch_httpd_misc_handlers, handle_file_req, "/usr/share/couchdb/www/crossdomain.xml" } To your local.ini to serve up crossdomain.xml. Closes #4
* Stabilize replication idRobert Newson2012-11-147-2/+28
| | | | | | | | | This patch introduces a stable server-wide UUID which is used in place of the local hostname and port number in new replication ids. This allows CouchDB to find a valid checkpoint even if the coordinating node's port has changed (it might be using a dynamic port, for example). COUCHDB-1259
* COUCHDB-1424 Fix etap to not consume any messageFilipe David Borba Manana2012-11-131-10/+11
| | | | | | Turns out that etap consumes any message in the mailbox in some cases. This can make some tests that use message passing hang, as etap itself consumes the messages.
* update NEWS & CHANGESJan Lehnardt2012-11-132-2/+8
|
* Module Level LoggingJan Lehnardt2012-11-133-6/+48
| | | | | | | | | | | | | | | | | | | | With this patch, you can set log levels per CouchDB module that overrides the default set in `[log] level = `. For example: [log] level = info [log_level_by_module] couch_httpd = debug This will have all modules log at level 'info' and `couch_httpd` log at level 'debug'. See src/*/*.erl for the various CouchDB modules. Based on work started by Robert Newson.
* Add rapid db recreation test caseJan Lehnardt2012-11-131-0/+61
|
* Work around race conditions in tests on faster hardware.Jan Lehnardt2012-11-132-0/+9
| | | | THIS NEEDS A PROPER FIX.
* Log problems opening database at ERROR level except for auto-created system dbsRobert Newson2012-11-134-5/+9
|
* Restore 400 error for empty PUTRobert Newson2012-11-091-0/+2
|
* Allow any 2xx code to indicate successRobert Newson2012-11-081-2/+2
|
* Test the X-Couch-Id headerBenjamin Nortier2012-11-021-1/+3
|
* Only return X-Couch-Id (rev is available in ETag)Benjamin Nortier2012-11-021-12/+12
|
* Document Id and Rev in response headersBenjamin Nortier2012-11-022-2/+25
|
* Merged pull request #7 from @mikeymckay, with thanksMike McKay2012-11-011-1/+2
|
* Consume all ibrowse messages before stream_nextAdam Kocolosk2012-10-311-7/+18
| | | | | | | | | | | The flow control in ibrowse's async response streams is tricky. We call stream_next to pull more data off the socket, but it seems that ibrowse will sometimes split that data into multiple messages. If we call stream_next for each message we process we end up with an overflowing mailbox. This patch changes the consumer so that it clears out the mailbox before calling stream_next.
* Update NEWS & CHANGESRandall Leeds2012-10-252-0/+8
|
* don't delete view groups that fail to openRandall Leeds2012-10-251-3/+4
| | | | ...but log a message instead. Fixes COUCHDB-1445.
* log 5xx responses at error levelRandall Leeds2012-10-251-1/+3
| | | | | | | | | | This change should reduce the risk that administrators fail to recognize correctable server errors without creating excess noise. If malformed requests start throwing 5xx errors into the logs, we should look at detecting them and reporting a better error, probably a 4xx, but it's more important that an admin known that, e.g., the permissions of a .couch file are wrong.
* improve file I/O error logging and handlingRandall Leeds2012-10-256-27/+30
| | | | | | | | | | | | | | | It's better to let these errors bubble and/or not give them special treatment when file:format_error/1 can do a better job of describing the failure. This is a forward-port of work done on 1.2.x, encompassing the following commits: 04c4a1041de06e8e39983cf9616c8baf9d889106 ede9482fc3c9e629572ab1376d88f4499c4c8beb cd238b42d1333cece5ab899c35c3b83ada8d448a af9e1c883ca4accb209cccc7ac9d26efa4daf1fd ba8fa86890087650a02a8ebaaea2537468999472
* disallow https for remote loading as wellRobin Berjon2012-10-251-0/+1
|
* COUCHDB-1563 ensures urlPrefix is set in all ajax requestsKeks Keksov2012-10-254-13/+18
|
* COUCHDB-1565 update README URLsAlexander Shorin2012-10-241-3/+3
|
* Ensure JSpec tests are actually run. Continued in COUCHDB-1566.Alexander Shorin2012-10-241-0/+1
|
* Upgrade get_crlf funs to use binary BIFBob Dionne2012-10-231-10/+14
|
* WhitespaceBob Dionne2012-10-231-19/+19
|
* Upgrade find_in_binary to use binary moduleBob Dionne2012-10-231-24/+23
|
* when reporting a bad db name, put the wrong value in the log messageJan Lehnardt2012-10-152-5/+6
|
* fix make distcheckJan Lehnardt2012-10-111-0/+1
|
* fix typo, closes pr #29Jan Lehnardt2012-10-102-1/+2
|
* COUCHDB-1537 Include user_ctx.name in show/list ETagRobert Newson2012-09-283-2/+5
|
* Build against R15B02 alsoRobert Newson2012-09-241-0/+1
|
* COUCHDB-1026 - encode database name when rewritingRobert Newson2012-08-314-109/+115
|
* Fix typo causing undef errorBob Dionne2012-08-261-1/+1
|
* Fix local to universal handlingRobert Newson2012-08-162-2/+2
|
* Fix deprecation warningRobert Newson2012-08-161-1/+1
| | | | the _dst variant does exist in R14B04.
* Fix Mochiweb acceptor blocked in ssl handshakeWei Cao2012-08-162-11/+11
| | | | | | Acceptor cannot be recycled until ssl handshake is done, so it's possible and easy for all acceptors be blocked between the point where the new socket's connected and the ssl handshake is done.
* Support all timezones for R14 seriesRobert Newson2012-08-151-1/+20
|
* COUCHDB-1444 Fix missing_named_viewPaul Joseph Davis2012-08-152-6/+7
| | | | | Instead of replacing 'EXIT' signals we can just stuff the process that exited into the exit reason and match on that.
* Revert "COUCHDB-1444 Fix missing_named_view errors"Paul Joseph Davis2012-08-152-33/+18
| | | | This reverts commit f5341a7dc65e96b806a958a27c9ccee5ec431162.