Skip to content

Commit 9a8e650

Browse files
willholleykxepal
authored andcommitted
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 <[email protected]>
1 parent e0fa333 commit 9a8e650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/chttpd_db.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,11 @@ db_req(#httpd{path_parts=[_, DocId | FileNameParts]}=Req, Db) ->
534534

535535
all_docs_view(Req, Db, Keys) ->
536536
Args0 = couch_mrview_http:parse_params(Req, Keys),
537+
Args1 = couch_mrview_util:validate_args(Args0),
537538
ETagFun = fun(Sig, Acc0) ->
538539
couch_mrview_http:check_view_etag(Sig, Acc0, Req)
539540
end,
540-
Args = Args0#mrargs{preflight_fun=ETagFun},
541+
Args = Args1#mrargs{preflight_fun=ETagFun},
541542
Options = [{user_ctx, Req#httpd.user_ctx}],
542543
{ok, Resp} = couch_httpd:etag_maybe(Req, fun() ->
543544
VAcc0 = #vacc{db=Db, req=Req},

0 commit comments

Comments
 (0)