couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Schneider <maili...@cedarsoft.com>
Subject Exception on include_docs=true and invalid revs
Date Thu, 09 Sep 2010 18:40:59 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

if one creates a view that contains an invalid "_rev" within the value,
CouchDB goes down and doesn't answer the request.
While this is clearly a invalid request, I think it should return
something like 400...


Regards,

Johannes


[debug] [<0.103.0>] 'GET'
/collustra_test/_design/pics/_view/byPhotographer?startkey=[%22photographer_5%22]&endkey=[%22photographer_5%22,true]&include_docs=true
{1,

                                                                      1}
Headers:
[{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
          {'Accept-Encoding',"gzip,deflate"},
          {'Connection',"keep-alive"},
          {'Host',"localhost:5984"},
          {'Keep-Alive',"115"},
          {'User-Agent',"Mozilla/5.0 (X11; U; Linux x86_64; en-US;
rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8"}]
[debug] [<0.103.0>] OAuth Params: [{"startkey","[\"photographer_5\"]"},
               {"endkey","[\"photographer_5\",true]"},
               {"include_docs","true"}]
[debug] [<0.100.0>] Spawning new group server for view group
_design/pics in database collustra_test.
[debug] [<0.103.0>] request_group {Pid, Seq} {<0.121.0>,10109}
[info] [<0.103.0>] 127.0.0.1 - - 'GET'
/collustra_test/_design/pics/_view/byPhotographer?startkey=[%22photographer_5%22]&endkey=[%22photographer_5%22,true]&include_docs=true
200
[debug] [<0.83.0>] New task status for collustra_test _design/pics:
Finishing.
[debug] [<0.103.0>] Minor error in HTTP request: {bad_request,<<"Invalid
rev format">>}
[debug] [<0.103.0>] Stacktrace: [{couch_doc,parse_rev,1},
             {couch_httpd_view,view_row_obj,3},
             {couch_httpd_view,send_json_view_row,5},
             {couch_httpd_view,'-make_view_fold_fun/7-fun-0-',12},
             {couch_view,fold_fun,4},
             {couch_btree,stream_kv_node2,8},
             {couch_btree,stream_kp_node,8},
             {couch_btree,fold,4}]
[info] [<0.103.0>] 127.0.0.1 - - 'GET'
/collustra_test/_design/pics/_view/byPhotographer?startkey=[%22photographer_5%22]&endkey=[%22photographer_5%22,true]&include_docs=true
400
[debug] [<0.103.0>] httpd 400 error response:
 {"error":"bad_request","reason":"Invalid rev format"}

- -- 
Johannes Schneider - blog.cedarsoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJMiSo4AAoJEAytD9R7Qv6dFuAH/iCRTKhOQ1dQhYktT29ZDYd5
YVKORn/c5n5/X8wkn7ZysKKQy5VCpgGZRY9ryW/aix1x7Y1m215+3cySIP/yR11H
w4OCIvsMjWY+j9UAsbX5l3wsLV2fUisFTcLJn5b3KaT8lH0cMIY1WbZsOe0p93l5
GQyVQ2u7PRiHpYyyJ5eskqww1Acm/xfK2sRZO5BC6yWVvNxn2yUNoGEPv9FGPJTH
9JHupLm0nN4sBWPHCynLsBlLc/V5pwGSTYJWk70kC/kUmtTOy+Hx9DXONQ1YqnnI
jKV7HtGVRFTLpt5y+K0JFQjMpn5niay4PiMlV5I7DQHxUrYKh0cBT9OW7pM4GMU=
=6Ys+
-----END PGP SIGNATURE-----

Mime
View raw message