couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject chttpd commit: updated refs/heads/master to d2c449b
Date Wed, 05 Oct 2016 21:05:11 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 53459aba5 -> d2c449b7b


Pass user context when opening doc in db_attachment_req

COUCHDB-3181


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/d2c449b7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/d2c449b7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/d2c449b7

Branch: refs/heads/master
Commit: d2c449b7bebc52bb40913be868c977cdbc7d0d9a
Parents: 53459ab
Author: Robert Newson <rnewson@apache.org>
Authored: Wed Oct 5 21:57:16 2016 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Oct 5 21:58:51 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/d2c449b7/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index 07a5eba..1b7fb55 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -1222,7 +1222,7 @@ db_attachment_req(#httpd{method=Method, user_ctx=Ctx}=Req, Db, DocId,
FileNamePa
             couch_doc:validate_docid(DocId),
             #doc{id=DocId};
         Rev ->
-            case fabric:open_revs(Db, DocId, [Rev], []) of
+            case fabric:open_revs(Db, DocId, [Rev], [{user_ctx,Ctx}]) of
             {ok, [{ok, Doc0}]}  -> Doc0;
             {ok, [Error]}       -> throw(Error)
             end


Mime
View raw message