This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch user-partitioned-dbs-6
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/user-partitioned-dbs-6 by this 
push:
     new 215232a  validate partion id when querying. merge somewhere.
215232a is described below

commit 215232ad14dbbf49e8c2add483e5ff70757b95f7
Author: Robert Newson <[email protected]>
AuthorDate: Wed Sep 5 11:18:40 2018 +0100

    validate partion id when querying. merge somewhere.
---
 src/couch_mrview/src/couch_mrview_util.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/couch_mrview/src/couch_mrview_util.erl 
b/src/couch_mrview/src/couch_mrview_util.erl
index abd731a..518b11b 100644
--- a/src/couch_mrview/src/couch_mrview_util.erl
+++ b/src/couch_mrview/src/couch_mrview_util.erl
@@ -599,8 +599,8 @@ validate_args(Args) ->
             mrverror(<<"`partition` parameter is not supported in this db.">>);
         {normal, true, undefined} ->
             mrverror(<<"`partition` parameter is mandatory for queries to this 
view.">>);
-        {normal, true, _Partition} ->
-            ok;
+        {normal, true, Partition} ->
+            couch_doc:validate_docid(Partition);
         {normal, false, undefined} ->
             ok;
         {normal, false, _Partition} ->

Reply via email to