couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [1/2] couch-mrview commit: updated refs/heads/master to 49533ef
Date Thu, 16 Mar 2017 02:50:01 GMT
Repository: couchdb-couch-mrview
Updated Branches:
  refs/heads/master e1d13a983 -> 49533ef9d


Allow limiting maximum document body size

This is a companion commit to this one:

https://github.com/apache/couchdb-couch/pull/235

COUCHDB-2992


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/398c30e8
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/398c30e8
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/398c30e8

Branch: refs/heads/master
Commit: 398c30e8785c3cd880d7d9788d25810dfe626c18
Parents: e1d13a9
Author: Nick Vatamaniuc <vatamane@apache.org>
Authored: Wed Mar 15 17:55:22 2017 -0400
Committer: Nick Vatamaniuc <vatamane@apache.org>
Committed: Wed Mar 15 17:55:22 2017 -0400

----------------------------------------------------------------------
 src/couch_mrview_show.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/398c30e8/src/couch_mrview_show.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_show.erl b/src/couch_mrview_show.erl
index 52e07a7..fee104e 100644
--- a/src/couch_mrview_show.erl
+++ b/src/couch_mrview_show.erl
@@ -132,7 +132,7 @@ send_doc_update_response(Req, Db, DDoc, UpdateName, Doc, DocId) ->
                 _ ->
                     Options = [{user_ctx, Req#httpd.user_ctx}]
             end,
-            NewDoc = couch_doc:from_json_obj({NewJsonDoc}),
+            NewDoc = couch_doc:from_json_obj_validate({NewJsonDoc}),
             couch_doc:validate_docid(NewDoc#doc.id),
             {ok, NewRev} = couch_db:update_doc(Db, NewDoc, Options),
             NewRevStr = couch_doc:rev_to_str(NewRev),


Mime
View raw message