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
commit 33b86cca2e539878225f15b0b44387c8594587af 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} ->
