You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2015/06/02 21:31:05 UTC
[15/41] chttpd commit: updated refs/heads/2080-port-cors to e2c2bd7
validate _all_docs query parameters
Perform the same query parameter validation in the clustered interface
for /_all_docs requests as we do in the non-clustered interface.
This closes 19
COUCHDB-2523
Signed-off-by: Alexander Shorin <kx...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/9a8e6509
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/9a8e6509
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/9a8e6509
Branch: refs/heads/2080-port-cors
Commit: 9a8e65099758560b68bcee450ced1d336d0fdbc3
Parents: e0fa333
Author: Will Holley <wi...@gmail.com>
Authored: Thu Jan 29 10:19:34 2015 +0000
Committer: Alexander Shorin <kx...@apache.org>
Committed: Thu Jan 29 14:32:17 2015 +0300
----------------------------------------------------------------------
src/chttpd_db.erl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/9a8e6509/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index e4510ae..cdf6038 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -534,10 +534,11 @@ db_req(#httpd{path_parts=[_, DocId | FileNameParts]}=Req, Db) ->
all_docs_view(Req, Db, Keys) ->
Args0 = couch_mrview_http:parse_params(Req, Keys),
+ Args1 = couch_mrview_util:validate_args(Args0),
ETagFun = fun(Sig, Acc0) ->
couch_mrview_http:check_view_etag(Sig, Acc0, Req)
end,
- Args = Args0#mrargs{preflight_fun=ETagFun},
+ Args = Args1#mrargs{preflight_fun=ETagFun},
Options = [{user_ctx, Req#httpd.user_ctx}],
{ok, Resp} = couch_httpd:etag_maybe(Req, fun() ->
VAcc0 = #vacc{db=Db, req=Req},