diff options
author | Robert Newson <rnewson@apache.org> | 2018-09-05 11:18:40 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2018-09-05 11:51:31 +0100 |
commit | 33b86cca2e539878225f15b0b44387c8594587af (patch) | |
tree | a6772d99dbf504bdd9d4c4e3aabf96a50b3c83c7 | |
parent | 0ad63113a7faba42685bb0694e647fc50e43b643 (diff) | |
download | couchdb-33b86cca2e539878225f15b0b44387c8594587af.tar.gz |
validate partion id when querying. merge somewhere.
-rw-r--r-- | src/couch_mrview/src/couch_mrview_util.erl | 4 |
1 files 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 abd731af2..518b11b5a 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} -> |