couchdb-futon.git
3 years agoadd license master
Robert Kowalski [Sat, 14 Mar 2015 18:54:34 +0000 (19:54 +0100)] 
add license

4 years agoUpdate jquery.ui to 1.10.4 version
Alexander Shorin [Thu, 20 Nov 2014 11:57:48 +0000 (14:57 +0300)] 
Update jquery.ui to 1.10.4 version

Followed by https://bugzilla.redhat.com/show_bug.cgi?id=1166041
This solves potential XSS issue in autocompletion module.

4 years agoReplicate only specified document ids
Nikolai Teofilov [Sat, 8 Jan 2011 21:41:34 +0000 (22:41 +0100)] 
Replicate only specified document ids

COUCHDB-1011

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoShow decoded database names in the recently used list
Alexander Shorin [Fri, 31 Oct 2014 16:00:59 +0000 (19:00 +0300)] 
Show decoded database names in the recently used list

Patch made by @janl for COUCHDB-1275.

4 years agoFuton: support document copying
Alexander Shorin [Thu, 30 Oct 2014 15:02:31 +0000 (18:02 +0300)] 
Futon: support document copying

Based on Patrick Antivackis work. Thanks!

COUCHDB-241

4 years agoUpdate jQuery UI to 1.9.2
Alexander Shorin [Thu, 30 Oct 2014 11:47:58 +0000 (14:47 +0300)] 
Update jQuery UI to 1.9.2

Fixes COUCHDB-1891

4 years agojquery.couch: fix document copying
Alexander Shorin [Wed, 29 Oct 2014 16:01:17 +0000 (19:01 +0300)] 
jquery.couch: fix document copying

To COPY a doc the client must specify the target doc id in Destination
header. Additionally, it may add the revision parameter if document
already exists and we want to copy over it.

4 years agofix test assertion
Robert Newson [Wed, 9 Apr 2014 20:54:08 +0000 (21:54 +0100)] 
fix test assertion

4 years agos/401/403
Robert Newson [Thu, 27 Mar 2014 13:19:46 +0000 (13:19 +0000)] 
s/401/403

4 years agoConfigurable upper bound to _uuids count parameter
Robert Newson [Tue, 25 Mar 2014 15:02:50 +0000 (15:02 +0000)] 
Configurable upper bound to _uuids count parameter

4 years agoMore deferred support to jquery.couch.js
Dale Harvey [Tue, 11 Mar 2014 11:16:13 +0000 (15:16 +0400)] 
More deferred support to jquery.couch.js

COUCHDB-1180

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoAdd deferred support to jquery.couch.js
telis94 [Tue, 11 Mar 2014 11:15:48 +0000 (15:15 +0400)] 
Add deferred support to jquery.couch.js

COUCHDB-1036 COUCHDB-1180

This closes #169

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoUse $.inArray instead of indexOf for IE8 compatibility.
Keith Gable [Mon, 3 Mar 2014 20:00:11 +0000 (14:00 -0600)] 
Use $.inArray instead of indexOf for IE8 compatibility.

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoUpgrade password hashes on authentication
Klaus Trainer [Wed, 19 Feb 2014 22:17:02 +0000 (23:17 +0100)] 
Upgrade password hashes on authentication

We now upgrade user docs to the new PBKDF2 password scheme on successful
authentication if the password hash is still from the old days where we
only used plain SHA-1 for hashing salted passwords.

Closes COUCHDB-1780.

4 years agoRemove client-side password crypto from JS tests
Klaus Trainer [Wed, 19 Feb 2014 20:30:53 +0000 (21:30 +0100)] 
Remove client-side password crypto from JS tests

This removes client-side password crypto from the JavaScript tests.

In some JavaScript tests, it has been assumed that SHA-1 is used for the
password hash in user docs.  Those tests should, however, not rely on
implementation details of the user authentication hash function, as it
isn't the goal of those tests to check these.  Furthermore, this causes
problems when a password scheme is changed, or a new one is introduced.

4 years agoremove superfluous 'user_doc.type'
Robert Kowalski [Sun, 16 Feb 2014 20:37:44 +0000 (21:37 +0100)] 
remove superfluous 'user_doc.type'

Fixes COUCHDB-1474

5 years agoAdd test for path normalization with qs params
Adam Kocoloski [Sun, 19 Jan 2014 03:32:37 +0000 (22:32 -0500)] 
Add test for path normalization with qs params

COUCHDB-2031

5 years agoNew Fauxton Build.
suelockwood [Thu, 2 Jan 2014 15:55:52 +0000 (10:55 -0500)] 
New Fauxton Build.
Added Ace Editor files to Makefile.am
Updated settings.json.default to have the correct release root

5 years agojquery.couch.js: db.changes().stop() should abort XMLHTTPRequest
Fedor Indutny [Tue, 10 Dec 2013 13:29:16 +0000 (17:29 +0400)] 
jquery.couch.js: db.changes().stop() should abort XMLHTTPRequest

5 years agoFix compatibility with jQuery 1.9+
Alexander Shorin [Sun, 8 Dec 2013 16:32:53 +0000 (20:32 +0400)] 
Fix compatibility with jQuery 1.9+

$.browser is gone there, but still we have to disable cache for MSIE.

COUCHDB-1668

5 years agoUpdate jquery.couch docstrings. Fix few typos.
Alexander Shorin [Sun, 8 Dec 2013 14:36:59 +0000 (18:36 +0400)] 
Update jquery.couch docstrings. Fix few typos.

References to CouchBase docs were broken anyway.

5 years agoInclude reason for replication failure in _replicator doc
Robert Newson [Tue, 3 Dec 2013 11:15:59 +0000 (11:15 +0000)] 
Include reason for replication failure in _replicator doc

closes COUCHDB-1647

5 years agoExtend support for attachment-related query params
Klaus Trainer [Fri, 15 Nov 2013 16:02:20 +0000 (17:02 +0100)] 
Extend support for attachment-related query params

Until now, the boolean query parameters `attachments` and
`att_encoding_info` have only been supported for the document API
endpoint (`/{db}/{docid}`).

This extends support for queries to the changes (`/{db}/_changes`) and
view (`/{db}/_design/{ddoc}/_view/{view}`) API endpoints:

* If `include_docs` and `attachments` equal `true`, the Base64-encoded
  contents of attachments are included with the documents in changes or
  view query results, respectively.

* If `include_docs` and `att_encoding_info` equal `true`, encoding
  information is included in attachment stubs if the particular
  attachment is compressed.

Closes COUCHDB-1923.

5 years agoRemove old jshint.js
Russell Branca [Tue, 19 Nov 2013 22:11:16 +0000 (14:11 -0800)] 
Remove old jshint.js

5 years agoCOUCHDB-1930 - fix - Futon, create New Document and change _id, clicking Save Documen...
Ben Russell [Wed, 13 Nov 2013 23:05:10 +0000 (23:05 +0000)] 
COUCHDB-1930 - fix - Futon, create New Document and change _id, clicking Save Document will save but sends you to wrong doc

5 years agoMerge branch 'remove-e4x-tests'
Jan Lehnardt [Mon, 7 Oct 2013 16:46:14 +0000 (18:46 +0200)] 
Merge branch 'remove-e4x-tests'

* remove-e4x-tests:
  remove E4X tests

5 years agoMerge branch '1888-fix-user-fields-disabled-for-admins'
Jan Lehnardt [Thu, 3 Oct 2013 15:59:18 +0000 (17:59 +0200)] 
Merge branch '1888-fix-user-fields-disabled-for-admins'

* 1888-fix-user-fields-disabled-for-admins:
  admins can always read all doc fields, regardless of public_fields

5 years agoadmins can always read all doc fields, regardless of public_fields
Jan Lehnardt [Wed, 25 Sep 2013 15:40:14 +0000 (17:40 +0200)] 
admins can always read all doc fields, regardless of public_fields

Closes COUCHDB-1888

5 years agounlink plugins from Futon & Fauxton
Jan Lehnardt [Wed, 2 Oct 2013 17:43:01 +0000 (19:43 +0200)] 
unlink plugins from Futon & Fauxton

5 years agoonly install plugins if their CouchDB version matches the target couch
Jan Lehnardt [Fri, 2 Aug 2013 21:09:01 +0000 (23:09 +0200)] 
only install plugins if their CouchDB version matches the target couch

5 years agoadd `uninstall()`, removed unneeded aplication:load() cruft
Jan Lehnardt [Fri, 2 Aug 2013 20:06:02 +0000 (22:06 +0200)] 
add `uninstall()`, removed unneeded aplication:load() cruft

5 years agocheck if plugins are already installed& better install feedback
Jan Lehnardt [Thu, 1 Aug 2013 16:56:07 +0000 (18:56 +0200)] 
check if plugins are already installed& better install feedback

5 years agoadd couchperuser
Jan Lehnardt [Thu, 1 Aug 2013 16:19:52 +0000 (18:19 +0200)] 
add couchperuser

5 years agoupdate hash & version for faux geocouch release
Jan Lehnardt [Thu, 1 Aug 2013 15:07:57 +0000 (17:07 +0200)] 
update hash & version for faux geocouch release

5 years agohook up futon to /_plugins
Jan Lehnardt [Wed, 31 Jul 2013 16:49:32 +0000 (18:49 +0200)] 
hook up futon to /_plugins

5 years agoCompiled Fauxton for experimental release.
suelockwood [Wed, 2 Oct 2013 19:07:15 +0000 (15:07 -0400)] 
Compiled Fauxton for experimental release.

5 years agoremove E4X tests
Jan Lehnardt [Mon, 30 Sep 2013 16:32:38 +0000 (18:32 +0200)] 
remove E4X tests

5 years agoadd `users_db_public` config var
Jan Lehnardt [Wed, 7 Aug 2013 13:45:16 +0000 (15:45 +0200)] 
add `users_db_public` config var

5 years agofix test for 8d7ab8b. cc COUCHDB-1838
Jan Lehnardt [Wed, 7 Aug 2013 14:11:59 +0000 (16:11 +0200)] 
fix test for 8d7ab8b. cc COUCHDB-1838

5 years agoMerge remote-tracking branch 'adamlofts/1493-fix-zerobyte-json-parsing'
Dirkjan Ochtman [Sat, 3 Aug 2013 16:22:30 +0000 (18:22 +0200)] 
Merge remote-tracking branch 'adamlofts/1493-fix-zerobyte-json-parsing'

5 years agoApply _list functions for _all_docs view. COUCHDB-1139
Alexander Shorin [Wed, 24 Jul 2013 14:12:03 +0000 (18:12 +0400)] 
Apply _list functions for _all_docs view. COUCHDB-1139

5 years agoAdd tests for COUCHDB-1493
Adam Lofts [Tue, 23 Jul 2013 10:25:56 +0000 (11:25 +0100)] 
Add tests for COUCHDB-1493

5 years agoSupport Last-Event-ID header for eventsource changes feeds
Damjan Georgievski [Sat, 20 Jul 2013 14:46:04 +0000 (15:46 +0100)] 
Support Last-Event-ID header for eventsource changes feeds

COUCHDB-1852

5 years agoAdd a configurable whitelist of public user props
Robert Newson [Fri, 21 Jun 2013 10:01:13 +0000 (11:01 +0100)] 
Add a configurable whitelist of public user props

By default no user properties are public and attempts to view a users
document other than your own will return a 404. If the public_fields
setting of the users_db config section is set to a list of field
names, however, you will see that subset of fields for any user.

Also, if `public_fields` is set and non-empty,
`_users/_all_docs?include_docs=true` will return documents with stripped
field.

Contributed with code parts from @indutny

5 years agoAllow storing a pre-hashed admin password
Jason Smith (work) [Fri, 31 May 2013 18:06:25 +0000 (18:06 +0000)] 
Allow storing a pre-hashed admin password

When duplicating a couch, it is difficult to copy the _config/admins/*
values. Storing the encoded value does not work because that value is
re-hashed when stored. (Your password is the literal string
"-pbkdf2-abcdef...".)

This change will store any config setting unmodified if ?raw=true is
in the query string.

Updating _config/admins/* already requires admin privileges, so there is
no change to the security.

5 years agoAdd tests for passwords beginning with :
Robert Newson [Mon, 19 Nov 2012 10:55:57 +0000 (10:55 +0000)] 
Add tests for passwords beginning with :

5 years agoPUT call to database that is not guaranted to exist.
Wendall Cada [Fri, 5 Apr 2013 18:41:40 +0000 (11:41 -0700)] 
PUT call to database that is not guaranted to exist.

5 years agoCreating existing database causes test to fail. Allowing config PUT to create replica...
Wendall Cada [Fri, 5 Apr 2013 18:40:42 +0000 (11:40 -0700)] 
Creating existing database causes test to fail. Allowing config PUT to create replicator db.

5 years agoEnsure that waitForSuccess calls have return values.
Wendall Cada [Fri, 5 Apr 2013 18:38:20 +0000 (11:38 -0700)] 
Ensure that waitForSuccess calls have return values.

5 years agoTest form-urlencoded doc update
Johannes J. Schmidt [Wed, 27 Mar 2013 23:11:26 +0000 (00:11 +0100)] 
Test form-urlencoded doc update

Update handlers have access to a form object parsed from an
application/x-www-form-urlencoded request.

5 years agoTest attachment upload via multipart/form-data
Johannes J. Schmidt [Wed, 27 Mar 2013 22:59:16 +0000 (23:59 +0100)] 
Test attachment upload via multipart/form-data

This is used in Futon attachment upload.

5 years agoReally fix `make check-js`. Sorry.
Jan Lehnardt [Fri, 15 Mar 2013 16:34:07 +0000 (17:34 +0100)] 
Really fix `make check-js`. Sorry.

5 years agofix `make check-js`
Jan Lehnardt [Fri, 15 Mar 2013 15:47:22 +0000 (16:47 +0100)] 
fix `make check-js`

5 years agoDo not run attachment_ranges.js in Chrome as Chrome is broken there.
Jan Lehnardt [Thu, 14 Mar 2013 19:13:02 +0000 (20:13 +0100)] 
Do not run attachment_ranges.js in Chrome as Chrome is broken there.

5 years agoDisable link to Futon test suite
Noah Slater [Sun, 10 Mar 2013 22:48:24 +0000 (22:48 +0000)] 
Disable link to Futon test suite

5 years agoReset rewrite counter on new request
Robert Newson [Sat, 16 Feb 2013 11:07:55 +0000 (11:07 +0000)] 
Reset rewrite counter on new request

We were spuriously throwing rewrite limit exceeded for non-looping
rewrites. This patch resets the count to zero at the start of a new
request and adds a test.

COUCHDB-1651

5 years agoMerge branch '1675-fix-roles-validation'
Robert Newson [Mon, 11 Feb 2013 13:25:36 +0000 (13:25 +0000)] 
Merge branch '1675-fix-roles-validation'

5 years agoOnly allow strings in user doc "roles" array
Robert Newson [Sun, 10 Feb 2013 10:52:24 +0000 (10:52 +0000)] 
Only allow strings in user doc "roles" array

We validate that _security documents only contain strings but we have
not done the same for the roles field in user docs. This is a breaking
change as users may have been inserting other things (notably,
objects) in this field.

COUCHDB-1675

5 years agorefactor replicator_db_security to be more resilient
Jan Lehnardt [Fri, 8 Feb 2013 19:35:56 +0000 (20:35 +0100)] 
refactor replicator_db_security to be more resilient

5 years agosplit replicator_db tests
Jan Lehnardt [Sun, 13 Jan 2013 14:22:01 +0000 (15:22 +0100)] 
split replicator_db tests

5 years agoAvoid badmatch when replicator dbnames have leading slashes.
Jan Lehnardt [Sat, 26 Jan 2013 17:14:42 +0000 (18:14 +0100)] 
Avoid badmatch when replicator dbnames have leading slashes.

Closes COUCHDB-317

Patch by Joan Touzet.

6 years agoupdate jquery to 1.8.3
Jan Lehnardt [Mon, 12 Nov 2012 21:06:51 +0000 (22:06 +0100)] 
update jquery to 1.8.3

6 years agoSend attachment headers in multipart responses
Jan Lehnardt [Wed, 14 Nov 2012 13:59:58 +0000 (14:59 +0100)] 
Send attachment headers in multipart responses

Closes COUCHDB-1368

Patch by:
 - Jan Lehnardt
 - Robert Newson

6 years agoIgnore multipart epilogue
Robert Newson [Wed, 19 Dec 2012 10:18:36 +0000 (10:18 +0000)] 
Ignore multipart epilogue

COUCHDB-1632

6 years agoImprove script url validation
Robert Newson [Tue, 18 Dec 2012 15:11:41 +0000 (15:11 +0000)] 
Improve script url validation

6 years agoUse non-compressed Content-Type in attachments test suites
Dave Cottlehuber [Sun, 15 Jan 2012 22:38:13 +0000 (23:38 +0100)] 
Use non-compressed Content-Type in attachments test suites

MD5-Digests of attachments are calculated on the compressed data if the
attachment MIME type is compressible, as defined in default.ini
[attachments] compressible_types

Windows uses a different gzip implementation, and therefore generates
different MD5-Digests than other platforms. Using binary Content-Type
resolves this.

6 years agoAdd docs and search links into Futon
Noah Slater [Mon, 3 Dec 2012 09:06:29 +0000 (10:06 +0100)] 
Add docs and search links into Futon

6 years agouse more docs in view_compaction test to ensure a difference
Jan Lehnardt [Wed, 5 Dec 2012 15:26:37 +0000 (16:26 +0100)] 
use more docs in view_compaction test to ensure a difference

6 years agoCOUCHDB-430,514,764 Fix list HTTP header handling.
Caleb Case [Sun, 15 Apr 2012 16:12:03 +0000 (12:12 -0400)] 
COUCHDB-430,514,764 Fix list HTTP header handling.

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

6 years agoReturn X-Couch-Id from show functions if doc is created
Robert Newson [Wed, 21 Nov 2012 14:01:46 +0000 (14:01 +0000)] 
Return X-Couch-Id from show functions if doc is created

6 years agotest for 1608
Robert Newson [Wed, 21 Nov 2012 13:00:31 +0000 (13:00 +0000)] 
test for 1608

6 years agoRevert "Document Id and Rev in response headers" patch
Robert Newson [Wed, 21 Nov 2012 13:03:04 +0000 (13:03 +0000)] 
Revert "Document Id and Rev in response headers" patch

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

6 years agoWork around race conditions in tests on faster hardware.
Jan Lehnardt [Tue, 13 Nov 2012 18:07:22 +0000 (19:07 +0100)] 
Work around race conditions in tests on faster hardware.

THIS NEEDS A PROPER FIX.

6 years agoTest the X-Couch-Id header
Benjamin Nortier [Fri, 2 Nov 2012 12:46:20 +0000 (12:46 +0000)] 
Test the X-Couch-Id header

6 years agoMerged pull request #7 from @mikeymckay, with thanks
Mike McKay [Thu, 1 Nov 2012 00:46:24 +0000 (01:46 +0100)] 
Merged pull request #7 from @mikeymckay, with thanks

6 years agodisallow https for remote loading as well
Robin Berjon [Thu, 25 Oct 2012 13:06:06 +0000 (15:06 +0200)] 
disallow https for remote loading as well

6 years agoCOUCHDB-1563 ensures urlPrefix is set in all ajax requests
Keks Keksov [Wed, 24 Oct 2012 22:29:02 +0000 (00:29 +0200)] 
COUCHDB-1563 ensures urlPrefix is set in all ajax requests

6 years agoEnsure JSpec tests are actually run. Continued in COUCHDB-1566.
Alexander Shorin [Wed, 24 Oct 2012 18:36:26 +0000 (20:36 +0200)] 
Ensure JSpec tests are actually run. Continued in COUCHDB-1566.

6 years agoCOUCHDB-1026 - encode database name when rewriting
Robert Newson [Fri, 31 Aug 2012 11:16:17 +0000 (12:16 +0100)] 
COUCHDB-1026 - encode database name when rewriting

6 years agoAdd utc_id_suffix UUID algorithm
NickNorth [Mon, 6 Aug 2012 10:02:44 +0000 (11:02 +0100)] 
Add utc_id_suffix UUID algorithm

6 years agoCOUCHDB-1511 - User docs require doc.roles
Robert Newson [Mon, 30 Jul 2012 11:53:33 +0000 (12:53 +0100)] 
COUCHDB-1511 - User docs require doc.roles

A _users doc must include roles otherwise the user receives an opaque
error. This patch throws an error if it is missing and adds a test to
verify that the user receives a readable error message.

6 years agosince=now. Get changes from now. close #COUCHDB-1501
benoitc [Fri, 22 Jun 2012 20:33:25 +0000 (22:33 +0200)] 
since=now. Get changes from now. close #COUCHDB-1501

6 years agoAdd test cases for empty keys query parameter
Adam Lofts [Sun, 20 May 2012 13:12:03 +0000 (14:12 +0100)] 
Add test cases for empty keys query parameter

6 years agoCOUCH-1470 - added error handling for opening missing document in futon.
Anthony S Baker [Fri, 11 May 2012 20:23:30 +0000 (16:23 -0400)] 
COUCH-1470 - added error handling for opening missing document in futon.
Also made all js alert error messages have the same format.

6 years agoUse ajax helper function for _session GET request to stop request cache in IE7
Ewan McDougall [Thu, 7 Jun 2012 11:34:54 +0000 (13:34 +0200)] 
Use ajax helper function for _session GET request to stop request cache in IE7

6 years agoCOUCHDB-1483 - Update handlers must produce valid doc ids
Robert Newson [Sat, 26 May 2012 19:36:11 +0000 (20:36 +0100)] 
COUCHDB-1483 - Update handlers must produce valid doc ids

6 years agoCOUCHDB-1473 & COUCHDB-1472 - Futon: disable buttons if user has insufficient rights
Anthony S Baker [Wed, 9 May 2012 17:56:25 +0000 (13:56 -0400)] 
COUCHDB-1473 & COUCHDB-1472 - Futon: disable buttons if user has insufficient rights

- Disabled the delete database button if it is not in adminparty,
 or if the current user is not admin.
- Security button is also disabled if user is not a database admin.

6 years agofix changes test to make it wokr on all browsers
benoitc [Wed, 16 May 2012 05:48:27 +0000 (07:48 +0200)] 
fix changes test to make it wokr on all browsers

6 years agofix whitespaces
benoitc [Wed, 16 May 2012 05:48:14 +0000 (07:48 +0200)] 
fix whitespaces

6 years agoadd Server-Sent Events protocol to db changes API. close #COUCHDB-986
benoitc [Wed, 16 May 2012 05:30:19 +0000 (07:30 +0200)] 
add Server-Sent Events protocol to db changes API. close #COUCHDB-986

This patch add support for the new specification of w3c by adding a new
feed type named `eventsource`:

http://www.w3.org/TR/2009/WD-eventsource-20090423/

This patch is based on @indutny patch with edits.

6 years agoUse TEquals for great good
Robert Newson [Thu, 26 Apr 2012 13:49:55 +0000 (14:49 +0100)] 
Use TEquals for great good

6 years agoLimit rewrite recursion depth
Ronny Pfannschmidt [Wed, 28 Mar 2012 14:58:20 +0000 (16:58 +0200)] 
Limit rewrite recursion depth

Loops in the rewriter would end up pegging the CPU until memory was
exhausted. Max recursion is now configurable and limited to 100
iterations.

Fixes: COUCHDB-1441

6 years agoDo not overwrite X-CouchDB-Requested-Path
Ronny Pfannschmidt [Fri, 23 Mar 2012 19:52:17 +0000 (20:52 +0100)] 
Do not overwrite X-CouchDB-Requested-Path

Repeated rewrites would replace the initial value of
X-CouchDB-Requested-Path.

Fixes: COUCHDB-1442

6 years agoFixing the replicator_db JS test
Paul Joseph Davis [Mon, 26 Mar 2012 20:17:02 +0000 (15:17 -0500)] 
Fixing the replicator_db JS test

6 years agoFix race condition in the auth db creation
Paul Joseph Davis [Sun, 25 Mar 2012 10:46:15 +0000 (05:46 -0500)] 
Fix race condition in the auth db creation

This test deletes a database and then tries to go and write to it
without ensuring that it exists. This is just a race with the auth cache
code trying to recreate its own database. This addition just makes sure
it exists by trying to create it and ignoring any 412 errors if the auth
cache won the race.

6 years agoFix random failures in replication.js test
Paul Joseph Davis [Sun, 25 Mar 2012 01:17:28 +0000 (20:17 -0500)] 
Fix random failures in replication.js test

This should fix the random failures for the 'expected "25" got "31"
error message that pops up occasionally. If my hunch is correct when we
remove the two docs from the source db its possible to get the writes on
the target out of order depending on a race condition.

This just sleeps a bit in between the deletions to try and reduce that
possibility. I haven't spotted this error after applying this patch.

6 years agoCOUCHDB-1060 - Fix tests
Robert Newson [Fri, 6 Apr 2012 16:24:25 +0000 (12:24 -0400)] 
COUCHDB-1060 - Fix tests

6 years agoSimplify changes.js test
Robert Newson [Thu, 29 Mar 2012 11:48:11 +0000 (12:48 +0100)] 
Simplify changes.js test

The changes.js test for filter=_view emits a key when it is only
necessary to emit a row. I've emitted (null, null) to clarify that.

6 years agoFix fold reduce with non-inclusive end key
Filipe David Borba Manana [Sat, 18 Feb 2012 06:07:27 +0000 (06:07 +0000)] 
Fix fold reduce with non-inclusive end key

Fold reducing a btree with with end_key_gt was not producing
the correct values. For example, for view queries with startkey
and starkey_docid and/or endkey and endkey_docid and inclusive_end
set to false, the doc ID component of the view keys was not
respected.
Example query:

http://server:5984/db/_design/test/_view/myview?startkey=4&endkey=6&endkey_docid=5&inclusive_end=false

Closes COUCHDB-1413

6 years agomake /_users/_changes admin-only
Jan Lehnardt [Thu, 16 Feb 2012 15:36:42 +0000 (16:36 +0100)] 
make /_users/_changes admin-only