couchdb-futon.git
12 years agoadd legalese for jspec
Jan Lehnardt [Wed, 2 Jun 2010 21:37:37 +0000 (21:37 +0000)] 
add legalese for jspec

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950776 13f79535-47bb-0310-9956-ffa450edef68

12 years agoAvoid double escaping in Futon edit fields. Patch by Martin Haaß. Closes COUCHDB...
Jan Lehnardt [Wed, 2 Jun 2010 18:09:43 +0000 (18:09 +0000)] 
Avoid double escaping in Futon edit fields. Patch by Martin Haaß. Closes COUCHDB-611.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950696 13f79535-47bb-0310-9956-ffa450edef68

12 years agotypo
Jan Lehnardt [Wed, 2 Jun 2010 18:09:25 +0000 (18:09 +0000)] 
typo

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950695 13f79535-47bb-0310-9956-ffa450edef68

12 years agoAdd tests for couch.js and jquery.couch.js
Jan Lehnardt [Wed, 2 Jun 2010 17:45:56 +0000 (17:45 +0000)] 
Add tests for couch.js and jquery.couch.js

Patch by Lena Herrmann.

Closes COUCHDB-783.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950689 13f79535-47bb-0310-9956-ffa450edef68

12 years agofix attachments with "./" in their names in Futon. Closes COUCHDB-239.
Jan Lehnardt [Tue, 1 Jun 2010 15:39:06 +0000 (15:39 +0000)] 
fix attachments with "./" in their names in Futon. Closes COUCHDB-239.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950119 13f79535-47bb-0310-9956-ffa450edef68

12 years agoAllow creation and deletin of config entries. Patch by Mikeal Rogers. Closes COUCHDB...
Jan Lehnardt [Fri, 28 May 2010 10:54:17 +0000 (10:54 +0000)] 
Allow creation and deletin of config entries. Patch by Mikeal Rogers. Closes COUCHDB-777.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@949149 13f79535-47bb-0310-9956-ffa450edef68

12 years agobetter test suite error messages. Patch by Volker Mische. Closes COUCHDB-777
Jan Lehnardt [Fri, 28 May 2010 10:36:29 +0000 (10:36 +0000)] 
better test suite error messages. Patch by Volker Mische. Closes COUCHDB-777

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@949145 13f79535-47bb-0310-9956-ffa450edef68

12 years agoAdd support for multi-document-fetch (via _all_docs) to jquery.couch.js.
Jason David Davies [Thu, 27 May 2010 23:00:09 +0000 (23:00 +0000)] 
Add support for multi-document-fetch (via _all_docs) to jquery.couch.js.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@949037 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFix some bugs in jquery.couch.js.
Jason David Davies [Thu, 27 May 2010 22:37:58 +0000 (22:37 +0000)] 
Fix some bugs in jquery.couch.js.

Namely:

 * openDoc() was inadvertently adding a ?beforeSuccess=... parameter to
   the URL.
 * bulkSave() wasn't sending a POST body.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@949028 13f79535-47bb-0310-9956-ffa450edef68

12 years agouse a smaller rev token for attachment versions, thanks for the suggestion Damien
John Christopher Anderson [Wed, 26 May 2010 00:53:43 +0000 (00:53 +0000)] 
use a smaller rev token for attachment versions, thanks for the suggestion Damien

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@948282 13f79535-47bb-0310-9956-ffa450edef68

12 years agoadd attachment versioning support to jquery.couch.js
John Christopher Anderson [Wed, 26 May 2010 00:08:42 +0000 (00:08 +0000)] 
add attachment versioning support to jquery.couch.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@948262 13f79535-47bb-0310-9956-ffa450edef68

12 years agoCheck for undefined options. Patch by Filipe Manana. Closes COUCHDB-774.
Jan Lehnardt [Sat, 22 May 2010 21:28:54 +0000 (21:28 +0000)] 
Check for undefined options. Patch by Filipe Manana. Closes COUCHDB-774.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@947336 13f79535-47bb-0310-9956-ffa450edef68

12 years agoRefactoring of various internal APIs, particularly those dealing with replicating...
Damien F. Katz [Thu, 20 May 2010 21:47:51 +0000 (21:47 +0000)] 
Refactoring of various internal APIs, particularly those dealing with replicating documents with attachments.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@946803 13f79535-47bb-0310-9956-ffa450edef68

12 years agoRenaming `jsonp = false` ini option to `allow_jsonp = false` to be
Jan Lehnardt [Wed, 19 May 2010 22:52:26 +0000 (22:52 +0000)] 
Renaming `jsonp = false` ini option to `allow_jsonp = false` to be
more clear about its intention.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@946474 13f79535-47bb-0310-9956-ffa450edef68

12 years agojsonp callbacks are ignored unless jsonp is configured to true
John Christopher Anderson [Wed, 19 May 2010 21:14:28 +0000 (21:14 +0000)] 
jsonp callbacks are ignored unless jsonp is configured to true

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@946400 13f79535-47bb-0310-9956-ffa450edef68

12 years agoUse "expando links" for long attribute values in the Futon document view.
Jan Lehnardt [Wed, 19 May 2010 20:17:59 +0000 (20:17 +0000)] 
Use "expando links" for long attribute values in the Futon document view.

Patch by Mikeal Rogers. Closes COUCHDB-766.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@946370 13f79535-47bb-0310-9956-ffa450edef68

12 years agojquery.couch.js option to force ensure_full_commit to true or false
John Christopher Anderson [Sat, 15 May 2010 05:08:25 +0000 (05:08 +0000)] 
jquery.couch.js option to force ensure_full_commit to true or false

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@944570 13f79535-47bb-0310-9956-ffa450edef68

12 years agorewriter security to allow isolation of databases via subdomains
John Christopher Anderson [Wed, 5 May 2010 19:51:32 +0000 (19:51 +0000)] 
rewriter security to allow isolation of databases via subdomains

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@941451 13f79535-47bb-0310-9956-ffa450edef68

12 years agouse keysearch BIF to search ejson props. Closes COUCHDB-747
Adam Kocoloski [Tue, 4 May 2010 02:01:00 +0000 (02:01 +0000)] 
use keysearch BIF to search ejson props. Closes COUCHDB-747

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@940708 13f79535-47bb-0310-9956-ffa450edef68

12 years agolist functionality for jquery.couch.js
John Christopher Anderson [Thu, 29 Apr 2010 18:33:37 +0000 (18:33 +0000)] 
list functionality for jquery.couch.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@939443 13f79535-47bb-0310-9956-ffa450edef68

12 years agoadd comment
Jan Lehnardt [Sat, 24 Apr 2010 15:31:26 +0000 (15:31 +0000)] 
add comment

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@937635 13f79535-47bb-0310-9956-ffa450edef68

12 years agotypos
Jan Lehnardt [Sat, 24 Apr 2010 15:30:40 +0000 (15:30 +0000)] 
typos

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@937634 13f79535-47bb-0310-9956-ffa450edef68

12 years agocompaction preserves instance_start_time. Closes COUCHDB-744
Adam Kocoloski [Thu, 22 Apr 2010 18:26:42 +0000 (18:26 +0000)] 
compaction preserves instance_start_time. Closes COUCHDB-744

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@936996 13f79535-47bb-0310-9956-ffa450edef68

12 years agofix erlang filter funs and normalize filter fun api. thanks fdmanana. closes COUCHDB-740
John Christopher Anderson [Thu, 22 Apr 2010 15:08:08 +0000 (15:08 +0000)] 
fix erlang filter funs and normalize filter fun api. thanks fdmanana. closes COUCHDB-740

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@936889 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFix to close users db immediately after authentication.
Damien F. Katz [Mon, 19 Apr 2010 20:51:32 +0000 (20:51 +0000)] 
Fix to close users db immediately after authentication.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@935737 13f79535-47bb-0310-9956-ffa450edef68

12 years agoupgrade CommonJS modules support to 1.1.1 - thanks Mikeal. closes COUCHDB-739
John Christopher Anderson [Fri, 16 Apr 2010 00:11:31 +0000 (00:11 +0000)] 
upgrade CommonJS modules support to 1.1.1 - thanks Mikeal. closes COUCHDB-739

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@934652 13f79535-47bb-0310-9956-ffa450edef68

12 years agoruby example function works with @mattly`s query server
John Christopher Anderson [Thu, 15 Apr 2010 03:04:12 +0000 (03:04 +0000)] 
ruby example function works with @mattly`s query server

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@934272 13f79535-47bb-0310-9956-ffa450edef68

12 years agofix last straggler view update_seq bugs, thanks tisba and bitdiddle for the report
John Christopher Anderson [Thu, 8 Apr 2010 00:07:22 +0000 (00:07 +0000)] 
fix last straggler view update_seq bugs, thanks tisba and bitdiddle for the report

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@931731 13f79535-47bb-0310-9956-ffa450edef68

12 years agotemp_views should be only available to server and database admins
John Christopher Anderson [Wed, 7 Apr 2010 19:51:04 +0000 (19:51 +0000)] 
temp_views should be only available to server and database admins

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@931655 13f79535-47bb-0310-9956-ffa450edef68

12 years agoinclude update_seq in view responses, patch via Joscha Feth, (mostly) closes COUCHDB-650
John Christopher Anderson [Wed, 7 Apr 2010 05:48:36 +0000 (05:48 +0000)] 
include update_seq in view responses, patch via Joscha Feth, (mostly) closes COUCHDB-650

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@931439 13f79535-47bb-0310-9956-ffa450edef68

12 years agochanges is less likely to miss updates, and changes test is more robust
John Christopher Anderson [Wed, 7 Apr 2010 02:25:36 +0000 (02:25 +0000)] 
changes is less likely to miss updates, and changes test is more robust

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@931407 13f79535-47bb-0310-9956-ffa450edef68

12 years agouse waitForSuccess to timeout changes requests that never succeed
John Christopher Anderson [Tue, 6 Apr 2010 19:54:04 +0000 (19:54 +0000)] 
use waitForSuccess to timeout changes requests that never succeed

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@931297 13f79535-47bb-0310-9956-ffa450edef68

12 years agoRemoved _sleep from all tests. replaced with loops that spin until a condition is...
Damien F. Katz [Fri, 2 Apr 2010 23:17:02 +0000 (23:17 +0000)] 
Removed _sleep from all tests. replaced with loops that spin until a condition is true. Makes tests faster and less likely to fail sporadically.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@930430 13f79535-47bb-0310-9956-ffa450edef68

12 years agoallows more complex keys in the rewriter, so it could ease the
Benoit Chesneau [Sun, 28 Mar 2010 11:17:32 +0000 (11:17 +0000)] 
allows more complex keys in the rewriter, so it could ease the
pagination (only array for now) :

{
  "from": "simpleForm/complexView5/:a/:b",
  "to": "_list/simpleForm/complexView3",
  "query": {
    "key": [":a", ":b"]
  }
},

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@928374 13f79535-47bb-0310-9956-ffa450edef68

12 years agoallows client to retrieve the revision of document updated via _update,
Benoit Chesneau [Sun, 28 Mar 2010 09:10:51 +0000 (09:10 +0000)] 
allows client to retrieve the revision of document updated via _update,
by providing it in headers. Header is named "X-Couch-Update-NewRev.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@928361 13f79535-47bb-0310-9956-ffa450edef68

12 years agorestart using init:restart() for better test reliability
John Christopher Anderson [Thu, 25 Mar 2010 19:06:52 +0000 (19:06 +0000)] 
restart using init:restart() for better test reliability

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@927545 13f79535-47bb-0310-9956-ffa450edef68

12 years agoTest for a regression with doc-id replication.
Jan Lehnardt [Sun, 21 Mar 2010 20:20:52 +0000 (20:20 +0000)] 
Test for a regression with doc-id replication.

Patch by Filipe Manana.

Closes COUCHDB-703.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@925883 13f79535-47bb-0310-9956-ffa450edef68

12 years agoMake changes test pass in CLI runner & WebKit
Jan Lehnardt [Sun, 21 Mar 2010 18:25:32 +0000 (18:25 +0000)] 
Make changes test pass in CLI runner & WebKit

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@925853 13f79535-47bb-0310-9956-ffa450edef68

12 years ago_stats builtin reduction for min/max/mean/variance
Adam Kocoloski [Wed, 10 Mar 2010 22:12:13 +0000 (22:12 +0000)] 
_stats builtin reduction for min/max/mean/variance

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@921592 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: use proper document value when constructing input element for inline editing...
Christopher Lenz [Thu, 4 Mar 2010 21:46:55 +0000 (21:46 +0000)] 
Futon: use proper document value when constructing input element for inline editing, instead of its HTML rendering, and always create textarea for multiline strings. Closes COUCHDB-671.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@919193 13f79535-47bb-0310-9956-ffa450edef68

12 years agoensure full commit when the security object is updated
John Christopher Anderson [Thu, 4 Mar 2010 05:16:00 +0000 (05:16 +0000)] 
ensure full commit when the security object is updated

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@918855 13f79535-47bb-0310-9956-ffa450edef68

12 years agotreat deleted docs as nonexistant docs
Jan Lehnardt [Sun, 28 Feb 2010 02:48:32 +0000 (02:48 +0000)] 
treat deleted docs as nonexistant docs

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917104 13f79535-47bb-0310-9956-ffa450edef68

12 years agorevert accidental commit
Jan Lehnardt [Sun, 28 Feb 2010 02:45:53 +0000 (02:45 +0000)] 
revert accidental commit

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917102 13f79535-47bb-0310-9956-ffa450edef68

12 years agoMerge branch 'show-deleted-docs' into trunk
Jan Lehnardt [Sun, 28 Feb 2010 02:41:52 +0000 (02:41 +0000)] 
Merge branch 'show-deleted-docs' into trunk

* show-deleted-docs:
  treat deleted docs as nonexistant docs
  Revert "Avoid replication task crashes by imporoving timeout handling."

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917098 13f79535-47bb-0310-9956-ffa450edef68

12 years agofdmananas patch for filtered replication via COUCHDB-673
John Christopher Anderson [Fri, 26 Feb 2010 01:11:02 +0000 (01:11 +0000)] 
fdmananas patch for filtered replication via COUCHDB-673

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@916518 13f79535-47bb-0310-9956-ffa450edef68

12 years agocommonjs require for show list etc via Mikeal Rogers. closes COUCHDB-658
John Christopher Anderson [Thu, 25 Feb 2010 01:20:07 +0000 (01:20 +0000)] 
commonjs require for show list etc via Mikeal Rogers. closes COUCHDB-658

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@916076 13f79535-47bb-0310-9956-ffa450edef68

12 years agoreplicator and view generator can skip check_is_reader when opening database files
John Christopher Anderson [Wed, 24 Feb 2010 15:37:16 +0000 (15:37 +0000)] 
replicator and view generator can skip check_is_reader when opening database files

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@915827 13f79535-47bb-0310-9956-ffa450edef68

12 years agoAllow replication to be cancelled. Closes COUCHDB-664. Patch by Robert Newson.
Jan Lehnardt [Wed, 24 Feb 2010 04:15:58 +0000 (04:15 +0000)] 
Allow replication to be cancelled. Closes COUCHDB-664. Patch by Robert Newson.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@915664 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Fix cookie storage for localhost. Closes COUCHDB-668. Thanks to Matt Goodall...
Christopher Lenz [Tue, 23 Feb 2010 21:37:15 +0000 (21:37 +0000)] 
Futon: Fix cookie storage for localhost. Closes COUCHDB-668. Thanks to Matt Goodall for the report and patch.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@915530 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Make the DB security dialog more compact.
Christopher Lenz [Tue, 23 Feb 2010 21:28:07 +0000 (21:28 +0000)] 
Futon: Make the DB security dialog more compact.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@915526 13f79535-47bb-0310-9956-ffa450edef68

12 years agofixed race condition in admin creation - thanks Matt Goodall
John Christopher Anderson [Mon, 22 Feb 2010 15:52:46 +0000 (15:52 +0000)] 
fixed race condition in admin creation - thanks Matt Goodall

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@912636 13f79535-47bb-0310-9956-ffa450edef68

12 years agoUpdate jQuery to 1.4.2.
Christopher Lenz [Mon, 22 Feb 2010 15:35:50 +0000 (15:35 +0000)] 
Update jQuery to 1.4.2.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@912615 13f79535-47bb-0310-9956-ffa450edef68

12 years agoAdd a proper icon for the security button.
Christopher Lenz [Mon, 22 Feb 2010 15:20:25 +0000 (15:20 +0000)] 
Add a proper icon for the security button.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@912608 13f79535-47bb-0310-9956-ffa450edef68

12 years ago_purge was incorrectly returning update_seq.
Paul Joseph Davis [Mon, 22 Feb 2010 15:18:46 +0000 (15:18 +0000)] 
_purge was incorrectly returning update_seq.

Patched and tested.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@912606 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Set rows for document source edit textarea to the number
Jan Lehnardt [Sat, 20 Feb 2010 07:09:57 +0000 (07:09 +0000)] 
Futon: Set rows for document source edit textarea to the number
of rows in the source.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@912082 13f79535-47bb-0310-9956-ffa450edef68

12 years agofix futon to use _security object. thanks Filipe Manana, closes COUCHDB-654
John Christopher Anderson [Sun, 14 Feb 2010 18:17:19 +0000 (18:17 +0000)] 
fix futon to use _security object. thanks Filipe Manana, closes COUCHDB-654

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@910054 13f79535-47bb-0310-9956-ffa450edef68

12 years agomove from _admins / _readers / _security to just a single _security object
John Christopher Anderson [Fri, 12 Feb 2010 05:38:57 +0000 (05:38 +0000)] 
move from _admins / _readers / _security to just a single _security object

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@909247 13f79535-47bb-0310-9956-ffa450edef68

12 years agoadd list()-API cmompatible API to _show. Symmetry FTW.
Jan Lehnardt [Fri, 5 Feb 2010 01:13:28 +0000 (01:13 +0000)] 
add list()-API cmompatible API to _show. Symmetry FTW.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906755 13f79535-47bb-0310-9956-ffa450edef68

12 years agore-enable 404 handling in show functions while retaining user-friendly error behaviour
Jan Lehnardt [Thu, 4 Feb 2010 23:09:06 +0000 (23:09 +0000)] 
re-enable 404 handling in show functions while retaining user-friendly error behaviour

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906721 13f79535-47bb-0310-9956-ffa450edef68

12 years agofix COUCHDB-638.
Benoit Chesneau [Thu, 4 Feb 2010 09:55:56 +0000 (09:55 +0000)] 
fix COUCHDB-638.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906423 13f79535-47bb-0310-9956-ffa450edef68

12 years agoerror message on bad security object
John Christopher Anderson [Wed, 3 Feb 2010 17:29:46 +0000 (17:29 +0000)] 
error message on bad security object

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906140 13f79535-47bb-0310-9956-ffa450edef68

12 years agoenhance reader and admin lists
John Christopher Anderson [Wed, 3 Feb 2010 17:29:41 +0000 (17:29 +0000)] 
enhance reader and admin lists

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906138 13f79535-47bb-0310-9956-ffa450edef68

12 years agooops. forgot to add this file in latest commit
Benoit Chesneau [Tue, 2 Feb 2010 21:09:06 +0000 (21:09 +0000)] 
oops. forgot to add this file in latest commit

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905800 13f79535-47bb-0310-9956-ffa450edef68

12 years agoproxy authentification handler. This handler allows creation of a
Benoit Chesneau [Tue, 2 Feb 2010 21:05:51 +0000 (21:05 +0000)] 
proxy authentification handler.  This handler allows creation of a
userCtx object from a user authenticated remotly.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905797 13f79535-47bb-0310-9956-ffa450edef68

12 years agoold diff. fix unitest
Benoit Chesneau [Tue, 2 Feb 2010 12:17:14 +0000 (12:17 +0000)] 
old diff. fix unitest

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905602 13f79535-47bb-0310-9956-ffa450edef68

12 years agowould have been strange to be abble ../../_changes and not
Benoit Chesneau [Tue, 2 Feb 2010 12:12:46 +0000 (12:12 +0000)] 
would have been strange to be abble ../../_changes and not
../../../_uuids in rewriting. Instead using
couch_httpd_db:handle_request we now use couch_httpd:handle_request. Add
one more unitest to test it.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905599 13f79535-47bb-0310-9956-ffa450edef68

12 years agomake uuuidCache a local variable. Patch by Jan Kassens. Closes COUCHDB-560.
Jan Lehnardt [Tue, 2 Feb 2010 00:53:54 +0000 (00:53 +0000)] 
make uuuidCache a local variable. Patch by Jan Kassens. Closes COUCHDB-560.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905483 13f79535-47bb-0310-9956-ffa450edef68

12 years agoDatabase-level security.
John Christopher Anderson [Mon, 1 Feb 2010 22:51:15 +0000 (22:51 +0000)] 
Database-level security.

This patch builds on the DB-admins feature to store lists of database admin and reader names and roles, as well as a security object which can be used for configuration in validation functions.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905436 13f79535-47bb-0310-9956-ffa450edef68

12 years agofix oauth test
Jan Lehnardt [Mon, 1 Feb 2010 20:56:43 +0000 (20:56 +0000)] 
fix oauth test

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905411 13f79535-47bb-0310-9956-ffa450edef68

12 years agoimprove object handling from query member of the rule. Allow to handle
Benoit Chesneau [Mon, 1 Feb 2010 13:46:26 +0000 (13:46 +0000)] 
improve object handling from query member of the rule. Allow to handle
key/startkey/endkey like {"a", 1}, [1, 2], [{"a": 1], 2] ...

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905284 13f79535-47bb-0310-9956-ffa450edef68

12 years agoadd url rewriting support.
Benoit Chesneau [Sun, 31 Jan 2010 23:00:37 +0000 (23:00 +0000)] 
add url rewriting support.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905134 13f79535-47bb-0310-9956-ffa450edef68

12 years agofix bulkSave(). Patch insipred by Lena Herrmann. Closes COUCHDB-634
Jan Lehnardt [Sun, 31 Jan 2010 21:16:19 +0000 (21:16 +0000)] 
fix bulkSave(). Patch insipred by Lena Herrmann. Closes COUCHDB-634

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905121 13f79535-47bb-0310-9956-ffa450edef68

12 years agoAllow Futon to run behind a HTTP proxy.
Jan Lehnardt [Sat, 30 Jan 2010 01:22:36 +0000 (01:22 +0000)] 
Allow Futon to run behind a HTTP proxy.

Depending no the Proxy's RFC 2616 compliance,
some tests might fail (looking at you, nginx).

Patch by Jack Moffit and Damjan Georgievski.

Closes COUCHDB-321.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@904705 13f79535-47bb-0310-9956-ffa450edef68

12 years agofix test view for json2.js toXMLString()
John Christopher Anderson [Fri, 29 Jan 2010 22:02:41 +0000 (22:02 +0000)] 
fix test view for json2.js toXMLString()

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@904643 13f79535-47bb-0310-9956-ffa450edef68

12 years agoThanks Filipe Manana. Closes COUCHDB-631.
John Christopher Anderson [Fri, 29 Jan 2010 20:08:54 +0000 (20:08 +0000)] 
Thanks Filipe Manana. Closes COUCHDB-631.

Replicator option to replicate a list of docids (bypasses by_seq index).

Usage: POST to /_replicate with a JSON body of:

{"source": "myfoo",
"target" : "http://remotedb.com/theirfoo",
"doc_ids": ["foo1", "foo3", "foo666"]}

This will copy the listed docs from the source to the target database.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@904615 13f79535-47bb-0310-9956-ffa450edef68

12 years agoReplace the old JavaScript query server JSON library with json2.js
John Christopher Anderson [Tue, 26 Jan 2010 00:11:59 +0000 (00:11 +0000)] 
Replace the old JavaScript query server JSON library with json2.js

This change makes us interoperate better with other JSON implementations. It also means we can use the native JSON handlers in JavaScript runtimes that support them. Should be faster right away on new Spidermonkeys.

There are some potential breaking changes for apps that depend on Couch blowing up on 'undefined'. json2.js serialized undefined as 'null' instead of crashing.

This change will also affect people using E4X, as you can't just return an XML object and have it serialized to a string for you. Calling .toXMLString() on these is all you need to do.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@903023 13f79535-47bb-0310-9956-ffa450edef68

12 years agoshow conflicts in changes filters. Patch by Lena Herrmann. Closes COUCHDB-630
Jan Lehnardt [Sat, 23 Jan 2010 15:29:33 +0000 (15:29 +0000)] 
show conflicts in changes filters. Patch by Lena Herrmann. Closes COUCHDB-630

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@902422 13f79535-47bb-0310-9956-ffa450edef68

12 years agostyle
Jan Lehnardt [Sat, 23 Jan 2010 15:19:23 +0000 (15:19 +0000)] 
style

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@902418 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Prefix cookie names with the port number, so that different CouchDB instances...
Christopher Lenz [Wed, 20 Jan 2010 22:42:10 +0000 (22:42 +0000)] 
Futon: Prefix cookie names with the port number, so that different CouchDB instances accessed through the same host name but different ports get their own storage. Closes COUCHDB-533.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@901413 13f79535-47bb-0310-9956-ffa450edef68

12 years agoproperly encode user name in link url
John Christopher Anderson [Wed, 20 Jan 2010 04:10:27 +0000 (04:10 +0000)] 
properly encode user name in link url

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@901055 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Merge the different compaction/cleanup buttons into a single button on the...
Christopher Lenz [Tue, 19 Jan 2010 23:23:43 +0000 (23:23 +0000)] 
Futon: Merge the different compaction/cleanup buttons into a single button on the database page, which will bring up a dialog allowing you to choose which type of compaction/cleanup to perform.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900999 13f79535-47bb-0310-9956-ffa450edef68

12 years agoMinor Futon style tweaks.
Christopher Lenz [Tue, 19 Jan 2010 22:58:32 +0000 (22:58 +0000)] 
Minor Futon style tweaks.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900997 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Simplify placeholder fallback using jQuery live focus events.
Christopher Lenz [Tue, 19 Jan 2010 22:37:41 +0000 (22:37 +0000)] 
Futon: Simplify placeholder fallback using jQuery live focus events.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900989 13f79535-47bb-0310-9956-ffa450edef68

12 years agoUpgraded jQuery to 1.4.0.
Christopher Lenz [Tue, 19 Jan 2010 22:05:41 +0000 (22:05 +0000)] 
Upgraded jQuery to 1.4.0.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900978 13f79535-47bb-0310-9956-ffa450edef68

12 years agoneed to add sha1.js to allow account creation on status page
John Christopher Anderson [Mon, 18 Jan 2010 21:28:49 +0000 (21:28 +0000)] 
need to add sha1.js to allow account creation on status page

it doesn't really make sense to create accounts on a page that
will show nothing unless you are logged in under an admin account, but
so it goes.  Better would be to hide the "status" link unless you're
logged in as admin.

but anyway adding this js lib is relatively harmless, and eliminates
that ugly dialog error

modified:   share/www/status.html

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900567 13f79535-47bb-0310-9956-ffa450edef68

12 years agoadded jquery.dialog to status.html page
John Christopher Anderson [Mon, 18 Jan 2010 21:28:45 +0000 (21:28 +0000)] 
added jquery.dialog to status.html page

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900566 13f79535-47bb-0310-9956-ffa450edef68

12 years agonormalize userCtx name and roles, also, no log in via a conflict doc
John Christopher Anderson [Mon, 18 Jan 2010 03:45:54 +0000 (03:45 +0000)] 
normalize userCtx name and roles, also, no log in via a conflict doc

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900275 13f79535-47bb-0310-9956-ffa450edef68

12 years agouse config info for users db
John Christopher Anderson [Wed, 13 Jan 2010 05:12:18 +0000 (05:12 +0000)] 
use config info for users db

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@898650 13f79535-47bb-0310-9956-ffa450edef68

12 years agobetter validations on users db
John Christopher Anderson [Sat, 9 Jan 2010 19:05:31 +0000 (19:05 +0000)] 
better validations on users db

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@897521 13f79535-47bb-0310-9956-ffa450edef68

12 years agomerge account branch to trunk
John Christopher Anderson [Thu, 7 Jan 2010 20:02:46 +0000 (20:02 +0000)] 
merge account branch to trunk

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@896989 13f79535-47bb-0310-9956-ffa450edef68

12 years agoadd button to cleanup old view files. closes COUCHDB-610. thanks Ilia Cheishvili
John Christopher Anderson [Sat, 2 Jan 2010 19:01:25 +0000 (19:01 +0000)] 
add button to cleanup old view files. closes COUCHDB-610. thanks Ilia Cheishvili

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@895262 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFollow RFC 2616 closer and use "verb" instead of "method"
Jan Lehnardt [Wed, 23 Dec 2009 00:55:35 +0000 (00:55 +0000)] 
Follow RFC 2616 closer and use "verb" instead of "method"

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893364 13f79535-47bb-0310-9956-ffa450edef68

12 years agoremove show from db doc GET handler, completing flip-flop on COUCHDB-404
John Christopher Anderson [Tue, 22 Dec 2009 18:32:12 +0000 (18:32 +0000)] 
remove show from db doc GET handler, completing flip-flop on COUCHDB-404

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893261 13f79535-47bb-0310-9956-ffa450edef68

12 years agomove query server to a design-doc based protocol, closes COUCHDB-589
John Christopher Anderson [Tue, 22 Dec 2009 18:03:44 +0000 (18:03 +0000)] 
move query server to a design-doc based protocol, closes COUCHDB-589

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893249 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Improve display of multi-line strings in tabular document view.
Christopher Lenz [Sat, 12 Dec 2009 00:08:47 +0000 (00:08 +0000)] 
Futon: Improve display of multi-line strings in tabular document view.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889867 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Show empty lists and objects in document view as [] and {}, respectively.
Christopher Lenz [Fri, 11 Dec 2009 23:27:18 +0000 (23:27 +0000)] 
Futon: Show empty lists and objects in document view as [] and {}, respectively.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889856 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Remember tabular vs. source tab preference in a cookie.
Christopher Lenz [Fri, 11 Dec 2009 23:00:17 +0000 (23:00 +0000)] 
Futon: Remember tabular vs. source tab preference in a cookie.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889846 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: A couple of bug fixes:
Christopher Lenz [Fri, 11 Dec 2009 22:39:29 +0000 (22:39 +0000)] 
Futon: A couple of bug fixes:
 * Enable tab insertion in text areas for temp views.
 * Properly sync disabled status of "grouping" control on page load.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889841 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Allow control over the group and group_level options on reduce views.
Christopher Lenz [Fri, 11 Dec 2009 20:17:40 +0000 (20:17 +0000)] 
Futon: Allow control over the group and group_level options on reduce views.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889795 13f79535-47bb-0310-9956-ffa450edef68

12 years agoFuton: Improve storage of session state by storing short-term settings in the window...
Christopher Lenz [Fri, 11 Dec 2009 18:58:12 +0000 (18:58 +0000)] 
Futon: Improve storage of session state by storing short-term settings in the window.name.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889766 13f79535-47bb-0310-9956-ffa450edef68