summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-08-19Support Range header for all attachments, even without compaction upgrade. ↵Robert Newson
It's just less efficient. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@987084 13f79535-47bb-0310-9956-ffa450edef68
2010-08-18expose security obj to shows, lists & updates functions.Benoit Chesneau
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@986854 13f79535-47bb-0310-9956-ffa450edef68
2010-08-18COUCHDB-161 - support Range header for attachments.Robert Newson
Attachments are upgraded to support the Range header on compaction. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@986629 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17fix badmatch when fetching zero byte attachments.Robert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@986476 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17don't export twice.. this warning was annoying.Benoit Chesneau
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@986437 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17add missing file (#COUCHDB-855)Benoit Chesneau
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@986183 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17New vhost manager. allows dynamic add of vhosts without restart,Benoit Chesneau
wildcard in vhost and dynamic routing via pattern matching. Close #COUCHDB-855. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@986182 13f79535-47bb-0310-9956-ffa450edef68
2010-08-15Bumping ibrowse library to version 1.6.2 (latest).Filipe David Borba Manana
It has a few important bug fixes and new features, such as, for example: 1) fixes https requests not going via the proxy; 2) added SSL support for direct connections; 3) fixes to URL parsing; 4) added option headers_as_is git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@985730 13f79535-47bb-0310-9956-ffa450edef68
2010-08-15Fix Erlang unused variable warnings.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@985719 13f79535-47bb-0310-9956-ffa450edef68
2010-08-15add requested_path to the req so we know original path in shows/lists &Benoit Chesneau
updates function. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@985678 13f79535-47bb-0310-9956-ffa450edef68
2010-08-13more informative error messages on invalid jsonJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@985407 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10added oauth_rsa_sha1.erl to the distNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@984237 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10add internal.hrl to INTERNAL_DIST. mea culpa.Robert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@984192 13f79535-47bb-0310-9956-ffa450edef68
2010-08-08related to COUCHDB-844. Include committed_update_seq in db_info to allow ↵Robert Newson
external monitoring of delayed commits. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983435 13f79535-47bb-0310-9956-ffa450edef68
2010-08-08Removing unnecessary guard in function clause (superceeded by pattern matching).Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983380 13f79535-47bb-0310-9956-ffa450edef68
2010-08-08provide the update_seq in all_docs view even when it is zeroJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983336 13f79535-47bb-0310-9956-ffa450edef68
2010-08-08fixes COUCHDB-844, delayed commits gets b0rkedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983331 13f79535-47bb-0310-9956-ffa450edef68
2010-08-07builtin reduce functions more forgiving about trailing whitespace and other ↵John Christopher Anderson
characters git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983306 13f79535-47bb-0310-9956-ffa450edef68
2010-08-07os_process_limit for query servers make them much more robust under ↵John Christopher Anderson
concurrent load git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983291 13f79535-47bb-0310-9956-ffa450edef68
2010-08-07fix warning about unused RestMatch variable.Robert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983245 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06add Etag header for standalone attachment PUT.Robert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983045 13f79535-47bb-0310-9956-ffa450edef68
2010-08-05remove double-spacing in couch.log output.Robert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@982621 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04add wildcard support in query args so it's now possible to have rulesBenoit Chesneau
like : { "from": "/welcome4/*", "to" : "_show/welcome3", "query": { "name": "*" } } rewriting "_rewrite/welcome4/test" to "_show/welcome3?name=test" or { "from": "/welcome5/*", "to" : "_show/*", } rewriting "_rewrite/welcome5/welcome3" to "_show/welcome3" git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@982388 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04Add replicator DB (_replicator).Filipe David Borba Manana
Part of ticket COUCHDB-776. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@982330 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04Don't close an idle system DB to open a non-system DB. Doing so allowed us ↵Filipe David Borba Manana
to open more than max_open_dbs non-system DBs. This issue is revealed when there are more than 1 system DBs (_users and _replicator). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@982328 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04Avoid unncessary pattern matching.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@982255 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04Allow POSTing of a JSON object to /_session/ for login.Filipe David Borba Manana
Closes COUCHDB-842, patch by Jonathan D. Knezek. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@982200 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02Add option "stale=update_after" when querying a view. Closes COUCHDB-837.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@981607 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02Remove functions from export list that are not used by any other module ↵Filipe David Borba Manana
(including the Etap tests). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@981595 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01Buf fix - proper RegExp matching to avoid having a case like "hhtml" being ↵Filipe David Borba Manana
considered as "html". git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@981348 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01Add missing clause to the case expression to avoid a case_clause Erlang ↵Filipe David Borba Manana
exception. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@981343 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01Bug fix - RegExp matching the atom 'undefined'.Filipe David Borba Manana
According to the HTTP 1.1 spec, if the Accept header is not specified by a client, it means the client accepts all media types. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@981341 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30Add support for replication through an HTTP/HTTPS proxy.John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@980985 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29fix the underlying issue that was giving replication problems attempting to ↵John Christopher Anderson
push design docs as a non-admin. this is what my reverted commit should have been git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@980319 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29Revert "replicator was getting stuck on push replication to design docs by ↵John Christopher Anderson
non-admins. this fix is a bit hackish but makes replication work. once the new_replicator is in place this hackish fix will not matter, so for now it is a good solution." This was too much of a hack. This reverts commit 7223697dafa234a9123e6f72b826ba11dc58e88f aka r979907 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@980293 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29more relaxed verification of SSL chains, COUCHDB-840Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@980269 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28don't require integer seqnums in the changes feed, COUCHDB-838Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@980265 13f79535-47bb-0310-9956-ffa450edef68
2010-07-27replicator was getting stuck on push replication to design docs by ↵John Christopher Anderson
non-admins. this fix is a bit hackish but makes replication work. once the new_replicator is in place this hackish fix will not matter, so for now it is a good solution. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979907 13f79535-47bb-0310-9956-ffa450edef68
2010-07-27Fix issues with the replicator when using HTTP Basic authentication, ↵Filipe David Borba Manana
receiving an HTTP redirect response, and loosing the authentication credentials because they're not found in the Location header's URL. This happens for example when the replicator does a request to the URI /somedb/_design%2Fmyddoc git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979887 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26Add SSL support to CouchDB.Robert Newson
To enable SSL you need to do three things; 1) enable the httpsd daemon in local.ini (you can just uncomment the line). 2) supply your PEM-encoded cert and key files in the [ssl] section. 3) start CouchDB. CouchDB will now, in addition to handling HTTP on port 5984, accept SSL connections on port 6984. The patch itself adds SSL support by updating the local version of Mochiweb to the latest. The upstream release includes our local tweak to support large numbers and to handle Accept-Encoding headers. Our local Mochiweb fork changed the default idle timeout from 10 seconds to 5 minutes, and it was agreed on #irc to revert this change. The only tweaks to Mochiweb were in mochiweb.app.src (to record the git commit I built from) and the removal of Makefile (replaced by Makefile.am). Futon received many tweaks as we have 'http://' hardcoded all over. All such instances now use window.location.protocol + '//'. CouchDB received a tweak to use the right scheme in couch_httpd:absolute_uri (it now gets it from the Mochireq and not mochiweb_socket_server). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979368 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26Multi-part patch to enable white-listing of _config API values:Jan Lehnardt
1. Refactor read-only config handlers to be near each other 2. Refactor PUT and DELETE config handlers to a wrapper 3. Support a whitelist for modifying the config via HTTP, itself stored in the config 4. Document the whitelist process Patch(es) by Jason Smith. Closes COUCHDB-835. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979242 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25send a basic-auth popup header if require_valid_user=true, to prevent lock-outJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979070 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24Make sure all the properties of an EJSON change line are binaries (instead ↵Filipe David Borba Manana
of a mix of binaries and atoms). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@978929 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24Move the tracking of the stat {httpd, clients_requesting_changes} from ↵Filipe David Borba Manana
couch_changes module into the couch_httpd_db module (that stat shouldn't be affected when the changes API is used for internal operations). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@978918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23Corrected misleading parameter name (Logs => DbList) and removed unnecessary ↵Filipe David Borba Manana
tuple parameter extraction and reconstruction. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@967262 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23Removed warnings about unused vairables.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@967254 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23Removed bogus log error message.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@967251 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22humane error message on missing design handlerJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@966685 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20require application/json content-type in the remaining places where a POST ↵John Christopher Anderson
has side-effects git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@965700 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19remove unguarded atom creation to prevent DOS attacks. closes COUCHDB-829John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@965667 13f79535-47bb-0310-9956-ffa450edef68