[jira] Created: (COUCHDB-831) badarity

2010-07-22 Thread Harry Vangberg (JIRA)
badarity


 Key: COUCHDB-831
 URL: https://issues.apache.org/jira/browse/COUCHDB-831
 Project: CouchDB
  Issue Type: Bug
Affects Versions: 1.0
 Environment: mac os x
Reporter: Harry Vangberg


I have an empty database with nothing but this design document:

{
   _id: _design/foo,
   _rev: 1-19b6ac05cd5e878bbe8193c3fbce57bb,
   language: javascript,
   views: {
   foo: {
   map: function(doc) {emit(1,2);}
   }
   }
}

Which fails miserably. 

$ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar
[Thu, 22 Jul 2010 13:27:53 GMT] [error] [0.1015.0] Uncaught error in HTTP 
request: {error,
 {badarity,
  {#Funcouch_httpd_db.5.100501499,
   [{httpd,
 {mochiweb_request,#Port0.2266,'GET',
  /argh/_design/foo/_views/bar,
  {1,1},
  {3,
   {user-agent,
{'User-Agent',
 curl/7.19.7 
(universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3},
{host,
 {'Host',127.0.0.1:5984},
 {accept,{'Accept',*/*},nil,nil},
 nil},
nil}}},
 127.0.0.1,'GET',
 [argh,_design,foo,
  _views,bar],
 {dict,5,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],
   [],[],[]},
  {{[[_design|
  #Funcouch_httpd.8.61263750]],
[],
[[_view_cleanup|
  #Funcouch_httpd.8.61263750]],
[],[],[],[],[],
[[_compact|
  #Funcouch_httpd.8.61263750]],
[],[],
[[_temp_view|
  #Funcouch_httpd.8.61263750]],
[[_changes|
  #Funcouch_httpd.8.61263750]],
[],[],[]}}},
 {user_ctx,null,
  [_admin],
  {couch_httpd_auth, 
default_authentication_handler}},
 undefined,
 {dict,6,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],
   [],[],[]},
  {{[],
[[_show|
  #Funcouch_httpd.10.132977763]],
[[_info|
  #Funcouch_httpd.10.132977763],
 [_list|
  #Funcouch_httpd.10.132977763]],
[[_update|
  #Funcouch_httpd.10.132977763]],
[],[],[],[],[],
[[_rewrite|
  #Funcouch_httpd.10.132977763]],
[],[],[],
[[_view|
  #Funcouch_httpd.10.132977763]],
[],[]}}},
 undefined,#Funcouch_httpd.6.96187723,
 {dict,13,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],
   [],[],[]},
  {{[[_restart|
  #Funcouch_httpd.6.96187723],
 [_replicate|
  #Funcouch_httpd.6.96187723]],
[[_active_tasks|
  #Funcouch_httpd.6.96187723]],
[],[],
[[_utils|
  #Funcouch_httpd.5.8198673],
 

Re: [jira] Created: (COUCHDB-831) badarity

2010-07-22 Thread Robert Dionne
looks like you're missing the view bar  ?




On Jul 22, 2010, at 9:29 AM, Harry Vangberg (JIRA) wrote:

 badarity
 
 
 Key: COUCHDB-831
 URL: https://issues.apache.org/jira/browse/COUCHDB-831
 Project: CouchDB
  Issue Type: Bug
Affects Versions: 1.0
 Environment: mac os x
Reporter: Harry Vangberg
 
 
 I have an empty database with nothing but this design document:
 
 {
   _id: _design/foo,
   _rev: 1-19b6ac05cd5e878bbe8193c3fbce57bb,
   language: javascript,
   views: {
   foo: {
   map: function(doc) {emit(1,2);}
   }
   }
 }
 
 Which fails miserably. 
 
 $ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar
 [Thu, 22 Jul 2010 13:27:53 GMT] [error] [0.1015.0] Uncaught error in HTTP 
 request: {error,
 {badarity,
  {#Funcouch_httpd_db.5.100501499,
   [{httpd,
 {mochiweb_request,#Port0.2266,'GET',
  /argh/_design/foo/_views/bar,
  {1,1},
  {3,
   {user-agent,
{'User-Agent',
 curl/7.19.7 
 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3},
{host,
 {'Host',127.0.0.1:5984},
 {accept,{'Accept',*/*},nil,nil},
 nil},
nil}}},
 127.0.0.1,'GET',
 [argh,_design,foo,
  _views,bar],
 {dict,5,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],
   [],[],[]},
  {{[[_design|
  #Funcouch_httpd.8.61263750]],
[],
[[_view_cleanup|
  #Funcouch_httpd.8.61263750]],
[],[],[],[],[],
[[_compact|
  #Funcouch_httpd.8.61263750]],
[],[],
[[_temp_view|
  #Funcouch_httpd.8.61263750]],
[[_changes|
  #Funcouch_httpd.8.61263750]],
[],[],[]}}},
 {user_ctx,null,
  [_admin],
  {couch_httpd_auth, 
 default_authentication_handler}},
 undefined,
 {dict,6,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],
   [],[],[]},
  {{[],
[[_show|
  #Funcouch_httpd.10.132977763]],
[[_info|
  #Funcouch_httpd.10.132977763],
 [_list|
  #Funcouch_httpd.10.132977763]],
[[_update|
  #Funcouch_httpd.10.132977763]],
[],[],[],[],[],
[[_rewrite|
  #Funcouch_httpd.10.132977763]],
[],[],[],
[[_view|
  #Funcouch_httpd.10.132977763]],
[],[]}}},
 undefined,#Funcouch_httpd.6.96187723,
 {dict,13,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],
   [],[],[]},
  {{[[_restart|
  #Funcouch_httpd.6.96187723],
 [_replicate|
  #Funcouch_httpd.6.96187723]],
[[_active_tasks|
  #Funcouch_httpd.6.96187723]],
[],[],

[jira] Commented: (COUCHDB-831) badarity

2010-07-22 Thread Sebastian Cohnen (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12891151#action_12891151
 ] 

Sebastian Cohnen commented on COUCHDB-831:
--

You need to query this view with  curl 
http://127.0.0.1:5984/argh/_design/foo/_views/foo (since your view's name is 
foo not bar). Although I'd like to suggest to give a slightly more readable 
(and understandable) error message here. What about View 
_design/foo/_views/bar not found? Returning a 404 would also be more 
appropriate, too.

 badarity
 

 Key: COUCHDB-831
 URL: https://issues.apache.org/jira/browse/COUCHDB-831
 Project: CouchDB
  Issue Type: Bug
Affects Versions: 1.0
 Environment: mac os x
Reporter: Harry Vangberg

 I have an empty database with nothing but this design document:
 {
_id: _design/foo,
_rev: 1-19b6ac05cd5e878bbe8193c3fbce57bb,
language: javascript,
views: {
foo: {
map: function(doc) {emit(1,2);}
}
}
 }
 Which fails miserably. 
 $ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar
 [Thu, 22 Jul 2010 13:27:53 GMT] [error] [0.1015.0] Uncaught error in HTTP 
 request: {error,
  {badarity,
   {#Funcouch_httpd_db.5.100501499,
[{httpd,
  {mochiweb_request,#Port0.2266,'GET',
   /argh/_design/foo/_views/bar,
   {1,1},
   {3,
{user-agent,
 {'User-Agent',
  curl/7.19.7 
 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3},
 {host,
  {'Host',127.0.0.1:5984},
  {accept,{'Accept',*/*},nil,nil},
  nil},
 nil}}},
  127.0.0.1,'GET',
  [argh,_design,foo,
   _views,bar],
  {dict,5,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[[_design|
   #Funcouch_httpd.8.61263750]],
 [],
 [[_view_cleanup|
   #Funcouch_httpd.8.61263750]],
 [],[],[],[],[],
 [[_compact|
   #Funcouch_httpd.8.61263750]],
 [],[],
 [[_temp_view|
   #Funcouch_httpd.8.61263750]],
 [[_changes|
   #Funcouch_httpd.8.61263750]],
 [],[],[]}}},
  {user_ctx,null,
   [_admin],
   {couch_httpd_auth, 
 default_authentication_handler}},
  undefined,
  {dict,6,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[],
 [[_show|
   #Funcouch_httpd.10.132977763]],
 [[_info|
   #Funcouch_httpd.10.132977763],
  [_list|
   #Funcouch_httpd.10.132977763]],
 [[_update|
   #Funcouch_httpd.10.132977763]],
 [],[],[],[],[],
 [[_rewrite|
   #Funcouch_httpd.10.132977763]],
 [],[],[],
 [[_view|
   #Funcouch_httpd.10.132977763]],
 [],[]}}},
  undefined,#Funcouch_httpd.6.96187723,
  {dict,13,16,16,8,80,48,
   

[jira] Commented: (COUCHDB-831) badarity

2010-07-22 Thread Harry Vangberg (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12891153#action_12891153
 ] 

Harry Vangberg commented on COUCHDB-831:


My mistake. But the error is the same:

$ curl http://127.0.0.1:5984/argh/_design/foo/_views/foo
{error:badarity,reason:{#Funcouch_httpd_db.5.100501499,
 [{httpd,
  {mochiweb_request,#Port0.2181,'GET',\/argh/_design/foo/_views/foo\,
  {1,1},
  {3,
   {\user-agent\,
{'User-Agent',
\curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 
OpenSSL/0.9.8l zlib/1.2.3\},
{\host\,
 {'Host',\127.0.0.1:5984\},
 {\accept\,{'Accept',\*/*\},nil,nil},
 nil},
nil}}},
  \127.0.0.1\,'GET',
  [\argh\,\_design\,\foo\,\_views\,\foo\],
  {dict,5,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  {{[[\_design\|#Funcouch_httpd.8.61263750]],
[],
[[\_view_cleanup\|#Funcouch_httpd.8.61263750]],
[],[],[],[],[],
[[\_compact\|#Funcouch_httpd.8.61263750]],
[],[],
[[\_temp_view\|#Funcouch_httpd.8.61263750]],
[[\_changes\|#Funcouch_httpd.8.61263750]],
[],[],[]}}},
  {user_ctx,null,
  [\_admin\],
  \{couch_httpd_auth, default_authentication_handler}\},
  undefined,
  {dict,6,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  {{[],
[[\_show\|#Funcouch_httpd.10.132977763]],
[[\_info\|#Funcouch_httpd.10.132977763],
 [\_list\|#Funcouch_httpd.10.132977763]],
[[\_update\|#Funcouch_httpd.10.132977763]],
[],[],[],[],[],
[[\_rewrite\|#Funcouch_httpd.10.132977763]],
[],[],[],
[[\_view\|#Funcouch_httpd.10.132977763]],
[],[]}}},
  undefined,#Funcouch_httpd.6.96187723,
  {dict,13,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  {{[[\_restart\|#Funcouch_httpd.6.96187723],
 [\_replicate\|#Funcouch_httpd.6.96187723]],
[[\_active_tasks\|#Funcouch_httpd.6.96187723]],
[],[],
[[\_utils\|#Funcouch_httpd.5.8198673],
 [\/\|#Funcouch_httpd.5.8198673],
 [\_config\|#Funcouch_httpd.6.96187723]],
[[\_log\|#Funcouch_httpd.6.96187723]],
[],[],
[[\_all_dbs\|#Funcouch_httpd.6.96187723]],
[],
[[\_stats\|#Funcouch_httpd.6.96187723],
 [\favicon.ico\|#Funcouch_httpd.5.8198673]],
[[\_session\|#Funcouch_httpd.6.96187723],
 [\_uuids\|#Funcouch_httpd.6.96187723]],
[],[],
[[\_oauth\|#Funcouch_httpd.6.96187723]],
[],
  {db,0.135.0,0.136.0,nil,\1279805632879706\,0.133.0,0.137.0,
  {db_header,5,3,0,{8422,{1,0}},{8594,1},nil,0,nil,nil,1000},
  3,
  {btree,0.133.0,
  {8422,{1,0}},
  #Funcouch_db_updater.7.69395062,#Funcouch_db_updater.8.86519079,
  #Funcouch_btree.5.124754102,#Funcouch_db_updater.9.24674233},
  {btree,0.133.0,
  {8594,1},
  #Funcouch_db_updater.10.90337910,
  #Funcouch_db_updater.11.13595824,#Funcouch_btree.5.124754102,
  #Funcouch_db_updater.12.34906778},
  {btree,0.133.0,nil,#Funcouch_btree.0.83553141,
  #Funcouch_btree.1.30790806,#Funcouch_btree.2.124754102,nil},
  3,\argh\,\/usr/local/var/lib/couchdb/argh.couch\,[],[],nil,
  {user_ctx,null,
  [\_admin\],
  \{couch_httpd_auth, default_authentication_handler}\},
  nil,1000,
  [before_header,after_header,on_file_open],
  false},
  {doc,\_design/foo\,
  {3,
   [253,95,22,127,41,225,75,9,175,16,133,117,72,72,185,226,
158,91,151,221,123,187,110,42,88,89,65,136,150,26,162,60,
25,182,172,5,205,94,135,139,190,129,147,195,251,206,87,187]},
  {[{\language\,\javascript\},
{\views\,
 {[{\foo\,{[{\map\,\function(doc) 
{emit(1,2);}\}]}}]}}]},
  [],false,[]}]}}

 badarity
 

 Key: COUCHDB-831
 URL: https://issues.apache.org/jira/browse/COUCHDB-831
 Project: CouchDB
  Issue Type: Bug
Affects Versions: 1.0
 Environment: mac os x
Reporter: Harry Vangberg

 I have an empty database with nothing but this design document:
 {
_id: _design/foo,
_rev: 1-19b6ac05cd5e878bbe8193c3fbce57bb,
language: javascript,
views: {
foo: {
map: function(doc) {emit(1,2);}
}
}
 }
 Which fails miserably. 
 $ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar
 [Thu, 22 Jul 2010 13:27:53 GMT] [error] [0.1015.0] Uncaught error in HTTP 
 request: {error,
  {badarity,
   

[jira] Commented: (COUCHDB-831) badarity

2010-07-22 Thread Sebastian Cohnen (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12891155#action_12891155
 ] 

Sebastian Cohnen commented on COUCHDB-831:
--

Ignore my comment, pls :)

 badarity
 

 Key: COUCHDB-831
 URL: https://issues.apache.org/jira/browse/COUCHDB-831
 Project: CouchDB
  Issue Type: Bug
Affects Versions: 1.0
 Environment: mac os x
Reporter: Harry Vangberg

 I have an empty database with nothing but this design document:
 {
_id: _design/foo,
_rev: 1-19b6ac05cd5e878bbe8193c3fbce57bb,
language: javascript,
views: {
foo: {
map: function(doc) {emit(1,2);}
}
}
 }
 Which fails miserably. 
 $ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar
 [Thu, 22 Jul 2010 13:27:53 GMT] [error] [0.1015.0] Uncaught error in HTTP 
 request: {error,
  {badarity,
   {#Funcouch_httpd_db.5.100501499,
[{httpd,
  {mochiweb_request,#Port0.2266,'GET',
   /argh/_design/foo/_views/bar,
   {1,1},
   {3,
{user-agent,
 {'User-Agent',
  curl/7.19.7 
 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3},
 {host,
  {'Host',127.0.0.1:5984},
  {accept,{'Accept',*/*},nil,nil},
  nil},
 nil}}},
  127.0.0.1,'GET',
  [argh,_design,foo,
   _views,bar],
  {dict,5,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[[_design|
   #Funcouch_httpd.8.61263750]],
 [],
 [[_view_cleanup|
   #Funcouch_httpd.8.61263750]],
 [],[],[],[],[],
 [[_compact|
   #Funcouch_httpd.8.61263750]],
 [],[],
 [[_temp_view|
   #Funcouch_httpd.8.61263750]],
 [[_changes|
   #Funcouch_httpd.8.61263750]],
 [],[],[]}}},
  {user_ctx,null,
   [_admin],
   {couch_httpd_auth, 
 default_authentication_handler}},
  undefined,
  {dict,6,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[],
 [[_show|
   #Funcouch_httpd.10.132977763]],
 [[_info|
   #Funcouch_httpd.10.132977763],
  [_list|
   #Funcouch_httpd.10.132977763]],
 [[_update|
   #Funcouch_httpd.10.132977763]],
 [],[],[],[],[],
 [[_rewrite|
   #Funcouch_httpd.10.132977763]],
 [],[],[],
 [[_view|
   #Funcouch_httpd.10.132977763]],
 [],[]}}},
  undefined,#Funcouch_httpd.6.96187723,
  {dict,13,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[[_restart|
   #Funcouch_httpd.6.96187723],
  [_replicate|
   

[jira] Commented: (COUCHDB-831) badarity

2010-07-22 Thread Harry Vangberg (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12891184#action_12891184
 ] 

Harry Vangberg commented on COUCHDB-831:


http://127.0.0.1:5984/argh/_design/foo/_views/bar - _view not _views.

Thanks Chris. 404'ing it might be a good idea.

 badarity
 

 Key: COUCHDB-831
 URL: https://issues.apache.org/jira/browse/COUCHDB-831
 Project: CouchDB
  Issue Type: Bug
Affects Versions: 1.0
 Environment: mac os x
Reporter: Harry Vangberg

 I have an empty database with nothing but this design document:
 {
_id: _design/foo,
_rev: 1-19b6ac05cd5e878bbe8193c3fbce57bb,
language: javascript,
views: {
foo: {
map: function(doc) {emit(1,2);}
}
}
 }
 Which fails miserably. 
 $ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar
 [Thu, 22 Jul 2010 13:27:53 GMT] [error] [0.1015.0] Uncaught error in HTTP 
 request: {error,
  {badarity,
   {#Funcouch_httpd_db.5.100501499,
[{httpd,
  {mochiweb_request,#Port0.2266,'GET',
   /argh/_design/foo/_views/bar,
   {1,1},
   {3,
{user-agent,
 {'User-Agent',
  curl/7.19.7 
 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3},
 {host,
  {'Host',127.0.0.1:5984},
  {accept,{'Accept',*/*},nil,nil},
  nil},
 nil}}},
  127.0.0.1,'GET',
  [argh,_design,foo,
   _views,bar],
  {dict,5,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[[_design|
   #Funcouch_httpd.8.61263750]],
 [],
 [[_view_cleanup|
   #Funcouch_httpd.8.61263750]],
 [],[],[],[],[],
 [[_compact|
   #Funcouch_httpd.8.61263750]],
 [],[],
 [[_temp_view|
   #Funcouch_httpd.8.61263750]],
 [[_changes|
   #Funcouch_httpd.8.61263750]],
 [],[],[]}}},
  {user_ctx,null,
   [_admin],
   {couch_httpd_auth, 
 default_authentication_handler}},
  undefined,
  {dict,6,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[],
 [[_show|
   #Funcouch_httpd.10.132977763]],
 [[_info|
   #Funcouch_httpd.10.132977763],
  [_list|
   #Funcouch_httpd.10.132977763]],
 [[_update|
   #Funcouch_httpd.10.132977763]],
 [],[],[],[],[],
 [[_rewrite|
   #Funcouch_httpd.10.132977763]],
 [],[],[],
 [[_view|
   #Funcouch_httpd.10.132977763]],
 [],[]}}},
  undefined,#Funcouch_httpd.6.96187723,
  {dict,13,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[[_restart|
   #Funcouch_httpd.6.96187723],
  

[jira] Closed: (COUCHDB-831) badarity

2010-07-22 Thread Chris Anderson (JIRA)

 [ 
https://issues.apache.org/jira/browse/COUCHDB-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Anderson closed COUCHDB-831.
--

Resolution: Fixed

added a proper 404 message in r966685

 badarity
 

 Key: COUCHDB-831
 URL: https://issues.apache.org/jira/browse/COUCHDB-831
 Project: CouchDB
  Issue Type: Bug
Affects Versions: 1.0
 Environment: mac os x
Reporter: Harry Vangberg

 I have an empty database with nothing but this design document:
 {
_id: _design/foo,
_rev: 1-19b6ac05cd5e878bbe8193c3fbce57bb,
language: javascript,
views: {
foo: {
map: function(doc) {emit(1,2);}
}
}
 }
 Which fails miserably. 
 $ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar
 [Thu, 22 Jul 2010 13:27:53 GMT] [error] [0.1015.0] Uncaught error in HTTP 
 request: {error,
  {badarity,
   {#Funcouch_httpd_db.5.100501499,
[{httpd,
  {mochiweb_request,#Port0.2266,'GET',
   /argh/_design/foo/_views/bar,
   {1,1},
   {3,
{user-agent,
 {'User-Agent',
  curl/7.19.7 
 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3},
 {host,
  {'Host',127.0.0.1:5984},
  {accept,{'Accept',*/*},nil,nil},
  nil},
 nil}}},
  127.0.0.1,'GET',
  [argh,_design,foo,
   _views,bar],
  {dict,5,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[[_design|
   #Funcouch_httpd.8.61263750]],
 [],
 [[_view_cleanup|
   #Funcouch_httpd.8.61263750]],
 [],[],[],[],[],
 [[_compact|
   #Funcouch_httpd.8.61263750]],
 [],[],
 [[_temp_view|
   #Funcouch_httpd.8.61263750]],
 [[_changes|
   #Funcouch_httpd.8.61263750]],
 [],[],[]}}},
  {user_ctx,null,
   [_admin],
   {couch_httpd_auth, 
 default_authentication_handler}},
  undefined,
  {dict,6,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[],
 [[_show|
   #Funcouch_httpd.10.132977763]],
 [[_info|
   #Funcouch_httpd.10.132977763],
  [_list|
   #Funcouch_httpd.10.132977763]],
 [[_update|
   #Funcouch_httpd.10.132977763]],
 [],[],[],[],[],
 [[_rewrite|
   #Funcouch_httpd.10.132977763]],
 [],[],[],
 [[_view|
   #Funcouch_httpd.10.132977763]],
 [],[]}}},
  undefined,#Funcouch_httpd.6.96187723,
  {dict,13,16,16,8,80,48,
   {[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
   {{[[_restart|
   #Funcouch_httpd.6.96187723],
  [_replicate|
   #Funcouch_httpd.6.96187723]],

[jira] Commented: (COUCHDB-53) Incorporating JSearch to CouchDB

2010-07-22 Thread Chris Anderson (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12891260#action_12891260
 ] 

Chris Anderson commented on COUCHDB-53:
---

I'll say I think this is important.

It would allow dynamic queries. That is, it makes it possible to run queries 
you didn't think of, without running an entire map reduce job.

The absence of this is a big reason people shy away from CouchDB.

Just sayin'

 Incorporating JSearch to CouchDB
 

 Key: COUCHDB-53
 URL: https://issues.apache.org/jira/browse/COUCHDB-53
 Project: CouchDB
  Issue Type: New Feature
  Components: Full-Text Search
 Environment: JSearch is developed in Java
Reporter: Jun Rao
Assignee: Paul Joseph Davis
Priority: Minor
 Attachments: jsearch_full.tgz


 JSearch is a prototype that we developed for indexing and searching Json 
 documents, and we are enthusiastic about contributing it to CouchDB. JSearch 
 converts a given Json document to a Lucene document for indexing. The 
 conversion is lossless and preserves all structural information in the 
 original Json document. We achieve that by storing the encoding of Json 
 structures in the payload of the posting list in a Lucene index. JSearch has 
 a simple query language that combines fulltext search and structural 
 querying. To qualify as a match, a document has to match both the JSON 
 structures as well as the Boolean constraints specified in the query. Suppose 
 that we have indexed the following two JSON documents:
d1={ A: [ { B: b1,  C: c1 },
  { B: b2,  C: c2 },
]
   }
d2={ A: [ { B: b1,  C: c2 },
  { B: b2,  C: c1 },
]
   }
 One can issue the following two JSeach queries.
P={ A: [ { B: b1  C: c1 } ] }
Q={ A: [ { B: b1}  {C: c1 } ] }
 Query P ( specifies conjunction) matches d1, but not d2. The reason is 
 that d2 doesn't have the proper B and C fields within the same JSON object. 
 On the other hand, query Q matches both d1 and d2, since it doesn't require 
 the B field and the C field to be in the same JSON object.
 Here is a summary of the querying features in JSearch
 1. arbitrary conjunctive and disjunctive constraints
 2. text search on atomic values of string type
 3. range constraints on atomic values (only those of string and long types 
 are currently supported)
 4. document level matching
 The easiest way to know more about JSeach is to give it a try. Download the 
 attached tgz file. Follow the readme file in it and try some of the examples. 
 The attachment also includes all Java source code (I can provide more 
 technical details if needed). I am very interested in your feedback. Does 
 JSearch fit into CouchDB? What other features are needed? How should JSearch 
 be integrated (from Jan's mail, it seems that some infrastructure is already 
 in-place)? Thanks,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (COUCHDB-832) Handling HTTP OPTIONS method

2010-07-22 Thread JIRA
Handling HTTP OPTIONS method


 Key: COUCHDB-832
 URL: https://issues.apache.org/jira/browse/COUCHDB-832
 Project: CouchDB
  Issue Type: Bug
  Components: HTTP Interface
Affects Versions: 1.0
Reporter: Stanisław


Method OPTIONS is not allowed, which disables ability for cross-site 
XMLHttpRequest (other than GET) within the browser (see: 
http://www.w3.org/TR/cors)

Current headers:

  curl -X OPTIONS http://localhost:5984 -v
  ...
   HTTP/1.1 405 Method Not Allowed
   Server: CouchDB/1.0.0 (Erlang OTP/R13B)
   Date: Thu, 22 Jul 2010 17:56:59 GMT
   Content-Type: text/plain;charset=utf-8
   Content-Length: 64
   Cache-Control: must-revalidate
   Allow: GET,HEAD

Expected headers:

  HTTP/1.1 200 OK
  Access-Control-Allow-Methods: POST, GET, OPTIONS
  Access-Control-Allow-Headers: X-PINGOTHER

Stan.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: CouchDB 1.0 retrospectives

2010-07-22 Thread Jan Lehnardt

On 15 Jul 2010, at 01:14, Jan Lehnardt wrote:

 
 On 15 Jul 2010, at 01:11, Will Hartung wrote:
 
 Heh -- ditto -- I thought someone might aggregate links for a one time
 post, but not hook me up to some confounded soulless world reaching
 info bot contraption! :)
 
 I actually subscribe to CouchDB-only feeds (except for Rick Ho's blog because 
 it is all awesome) and Damien of course, so it is still very selective. I 
 read planet CouchDB every day :)

Today I added: 

 Will Hartung
 Klaus Trainer
 Randall Leeds

Anyone else with a CouchDB-only posts feed on his/her blog?
(cc user@ — Looking for blogs to link on http://planet.couchdb.org/)

Cheers
Jan
-- 



[jira] Closed: (COUCHDB-820) Futon dropdowns can't be read on dark themed Firefox

2010-07-22 Thread Jan Lehnardt (JIRA)

 [ 
https://issues.apache.org/jira/browse/COUCHDB-820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Lehnardt closed COUCHDB-820.


Resolution: Fixed

 Futon dropdowns can't be read on dark themed Firefox
 

 Key: COUCHDB-820
 URL: https://issues.apache.org/jira/browse/COUCHDB-820
 Project: CouchDB
  Issue Type: Bug
  Components: Futon
Affects Versions: 1.0
 Environment: Firefox 3.6.3, Ubuntu, dark GTK theme
Reporter: Volker Mische
 Fix For: 1.0.1

 Attachments: black-text.patch


 The CSS for dropdowns define a background (white) but no foreground color. 
 Therefore it breaks with dark themes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (COUCHDB-833) Use Takanori Ishikawa's JS SHA1 implementation which doesn't pollute the global namespace

2010-07-22 Thread Devin Torres (JIRA)
Use Takanori Ishikawa's JS SHA1 implementation which doesn't pollute the global 
namespace
-

 Key: COUCHDB-833
 URL: https://issues.apache.org/jira/browse/COUCHDB-833
 Project: CouchDB
  Issue Type: Improvement
  Components: Futon
Reporter: Devin Torres
Priority: Trivial


The current implementation by Paj is slow and pollutes the global namespace 
with variables and functions. This implementation only exports the SHA1 module  
and also happens to be up to 3 times faster as an added bonus. See 
http://bit.ly/9wjjRG for benchmarks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (COUCHDB-833) Use Takanori Ishikawa's JS SHA1 implementation which doesn't pollute the global namespace

2010-07-22 Thread Devin Torres (JIRA)

 [ 
https://issues.apache.org/jira/browse/COUCHDB-833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Devin Torres updated COUCHDB-833:
-

Attachment: better_js_sha1.patch

 Use Takanori Ishikawa's JS SHA1 implementation which doesn't pollute the 
 global namespace
 -

 Key: COUCHDB-833
 URL: https://issues.apache.org/jira/browse/COUCHDB-833
 Project: CouchDB
  Issue Type: Improvement
  Components: Futon
Reporter: Devin Torres
Priority: Trivial
 Attachments: better_js_sha1.patch

   Original Estimate: 0.02h
  Remaining Estimate: 0.02h

 The current implementation by Paj is slow and pollutes the global namespace 
 with variables and functions. This implementation only exports the SHA1 
 module  and also happens to be up to 3 times faster as an added bonus. See 
 http://bit.ly/9wjjRG for benchmarks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: Reia views for CouchDB

2010-07-22 Thread Jan Lehnardt
Hey Tony,

awesome plans! :)

We have a small rspec file that exercises all the parts of the view server:

  
http://svn.apache.org/viewvc/couchdb/trunk/test/view_server/query_server_spec.rb?view=markup

It is easily extendible (see where there's js and erlang, you can just add 
complementing reia sections in there).

If you get all tests to pass, all is well :)

I hope that helps, let us know if you have any more questions!

Cheers
Jan
-- 

On 21 Jul 2010, at 19:48, Tony Arcieri wrote:

 Hello CouchDB people,
 
 I just wanted to announce that I've started work on implementing support for
 Reia views for CouchDB:
 
 http://github.com/tarcieri/recliner
 
 Reia is a Ruby-like language for the Erlang virtual machine.  You can read
 more about it here: http://wiki.reia-lang.org/
 
 http://github.com/tarcieri/reclinerSo far I've just been working on
 automating the installation of Reia, which is of course a prerequisite to
 having CouchDB views.
 
 I haven't taken the plunge into the actual implementation, but figure I can
 look off the Erlang views implementation for a reference and tweak it as
 needed to use Reia instead.
 
 If anyone has any advice on how this sort of thing should be done don't
 hesitate to let me know.
 
 -- 
 Tony Arcieri
 Medioh! A Kudelski Brand



[jira] Commented: (COUCHDB-833) Use Takanori Ishikawa's JS SHA1 implementation which doesn't pollute the global namespace

2010-07-22 Thread Chris Anderson (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12891477#action_12891477
 ] 

Chris Anderson commented on COUCHDB-833:


patch doesn't apply cleanly (might be because I did the json2.js update 
beforehand direct from json.org)

Can you repost the patch against latest trunk, or a link to your git repo so I 
can clone directly?

Thanks!

Chris

 Use Takanori Ishikawa's JS SHA1 implementation which doesn't pollute the 
 global namespace
 -

 Key: COUCHDB-833
 URL: https://issues.apache.org/jira/browse/COUCHDB-833
 Project: CouchDB
  Issue Type: Improvement
  Components: Futon
Reporter: Devin Torres
Priority: Trivial
 Attachments: better_js_sha1.patch

   Original Estimate: 0.02h
  Remaining Estimate: 0.02h

 The current implementation by Paj is slow and pollutes the global namespace 
 with variables and functions. This implementation only exports the SHA1 
 module  and also happens to be up to 3 times faster as an added bonus. See 
 http://bit.ly/9wjjRG for benchmarks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.