summaryrefslogtreecommitdiff
path: root/src/couchdb
AgeCommit message (Collapse)Author
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 reverts commit bbdce1780b71840abe3197422d697048e708146b. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@980294 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/branches/1.0.x@980266 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/branches/1.0.x@979908 13f79535-47bb-0310-9956-ffa450edef68
2010-07-27Merge revision 979887 from trunk:Filipe David Borba Manana
Fix issues with the replicator when using HTTP Basic authentication, 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/branches/1.0.x@979888 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/branches/1.0.x@979083 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24Merge revision 978918 from trunk:Filipe David Borba Manana
Move the tracking of the stat {httpd, clients_requesting_changes} from 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/branches/1.0.x@978919 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23Merged revision 967254 from trunk:Filipe David Borba Manana
Removed warnings about unused vairables. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@967255 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23Merged revision 967251 from trunk:Filipe David Borba Manana
Removed bogus log error message. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@967252 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/branches/1.0.x@966687 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/branches/1.0.x@965702 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/branches/1.0.x@965673 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19Merge revision 965434 from trunk:Filipe David Borba Manana
Fix possible bad match error - WriteFun might not return the atom 'ok'. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@965436 13f79535-47bb-0310-9956-ffa450edef68
2010-07-16Revert revision 964957 (COUCHDB-827) - solution had secondary effects.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@964971 13f79535-47bb-0310-9956-ffa450edef68
2010-07-16Merge revision 964956 from trunk:Filipe David Borba Manana
Fix for a pull replication, targeted to a 1.0 CouchDB server, where the source DB is in a remote CouchDB 0.11.0 server and the target DB is local (1.0 CouchDB DB). Closes ticket COUCHDB-827. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@964957 13f79535-47bb-0310-9956-ffa450edef68
2010-07-14Merge revision 964108 from trunk:Filipe David Borba Manana
Bug fix: badmatch error after deleting a user doc (uncovered by revision 963723). git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@964109 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13show the complete document body even when the document is deleted (Couch ↵John Christopher Anderson
lets you store data with a delete but did not render it to JSON) git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@963732 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13test and fix for deleting users documentsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@963731 13f79535-47bb-0310-9956-ffa450edef68
2010-07-08validate admin and content type for compact requestsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@961905 13f79535-47bb-0310-9956-ffa450edef68
2010-07-08Merge revision 961893 from trunk:Filipe David Borba Manana
Fix deletion of view files after compaction. Also added test for view compaction. Thanks Adam for reporting the issue. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@961897 13f79535-47bb-0310-9956-ffa450edef68
2010-07-08Fix for occasional failed tests caused by responding with 202 success to ↵John Christopher Anderson
compaction requests before the compaction actually begins. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@961857 13f79535-47bb-0310-9956-ffa450edef68
2010-07-06dont redirect endlessly when require_valid_user=trueJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960975 13f79535-47bb-0310-9956-ffa450edef68
2010-07-04_log should be an admin-only resourceJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960363 13f79535-47bb-0310-9956-ffa450edef68
2010-07-03Replacing call couch_httpd_db:couch_doc_open/4 with call to couch_db:open_doc/2.Filipe David Borba Manana
It's more correct from a design point of view. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960229 13f79535-47bb-0310-9956-ffa450edef68
2010-07-03Fix deletion to move properly to root of storage, to avoid copying files ↵Damien F. Katz
when view and database dirs are on different mounts. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960153 13f79535-47bb-0310-9956-ffa450edef68
2010-07-03Fixed intermittent problem deleting files on Windows. Added Juhani ↵Damien F. Katz
Ränkimies to THANKS git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960150 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02add line ending to be like the pidfile and fix typo.Benoit Chesneau
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960089 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02close #COUCHDB-393. save the uri http://IP:PORT/ inBenoit Chesneau
%localstatelibdir%/couch.uri when couchdb start. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960087 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02fix edge case in users db validation funJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960084 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02Moving duplicated code into a single private module function.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@959946 13f79535-47bb-0310-9956-ffa450edef68
2010-07-01prevent zero byte files, closes COUCHDB-647John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@959791 13f79535-47bb-0310-9956-ffa450edef68
2010-07-01Fix for windows fsync, race conditions in attachments.js and the default ↵Damien F. Katz
shell used when launching windows CouchDB. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@959781 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30Bug fix when creating a DB with the option 'sys_db' and the number of ↵Filipe David Borba Manana
current opened DBs corresponds to the max_open_dbs config parameter. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@959246 13f79535-47bb-0310-9956-ffa450edef68
2010-06-25make the authentication redirect URL configurable. setting it to the empty ↵John Christopher Anderson
string yields the 0.11 behavior git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957805 13f79535-47bb-0310-9956-ffa450edef68
2010-06-25Added checking to ensure when a revpos is sent with a stub, it's correct.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957800 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24don't require a revpos attribute for stubs. closes COUCHDB-809 thanks Caleb LandJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957653 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24better error message for db names, closes COUCHDB-741 thanks FrankJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957613 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24close COUCHDB-795 add X-HTTP-METHOD-OVERRIDE support. Thanks Brian JenkinsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957610 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24wait forever on large ini filesJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957599 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24ignore error when loading public_key on R12B5. spotted by barj on ircBenoit Chesneau
and fixed with help of @rnewson. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957596 13f79535-47bb-0310-9956-ffa450edef68
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-24send browsers to /_utils/session.html when they need to log inJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957407 13f79535-47bb-0310-9956-ffa450edef68
2010-06-23Added files missing from last checkin for COUCHDB-807Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957316 13f79535-47bb-0310-9956-ffa450edef68
2010-06-23Authentication caching, to avoid repeated opening and closing of the users ↵Damien F. Katz
database for each request requiring authentication. COUCHDB-807 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957314 13f79535-47bb-0310-9956-ffa450edef68
2010-06-23Make file deletions async to avoid pauses during compaction and db deletion. ↵Damien F. Katz
Fixes COUCHDB-780. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957303 13f79535-47bb-0310-9956-ffa450edef68
2010-06-19fix issue COUCHDB-805. tested on R13B-04 and R14A. also public_key isBenoit Chesneau
available since R12B5. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@956220 13f79535-47bb-0310-9956-ffa450edef68
2010-06-16provide a uuid to update functions (and all other functions) that they can ↵John Christopher Anderson
use to create new docs. closes COUCHDB-802. Thanks Jason Smith, Zachary Zolton, and Dmitry Unkovsky. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955389 13f79535-47bb-0310-9956-ffa450edef68
2010-06-16small optimization for reordering result listsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955297 13f79535-47bb-0310-9956-ffa450edef68
2010-06-16remove unused Bt from chunkify functionAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955244 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15Fix for wrong offset when writing headers and converting them to blocks, ↵Damien F. Katz
only triggered when header is larger than 4k. COUCHDB-800. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955000 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15Fix warnings on Linux builds.Jan Lehnardt
Patch by Paul Davis. Closes COUCHDB-775 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@954950 13f79535-47bb-0310-9956-ffa450edef68