https://issues.apache.org/jira/browse/COUCHDB-3182
2016-10-05 20:02 GMT+02:00 Robert Samuel Newson <[email protected]>: > fyi > > 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 > (END) > > > On 5 Oct 2016, at 18:54, Robert Samuel Newson <[email protected]> > wrote: > > > > Can you make a jira ticket at https://issues.apache.org/ > jira/browse/COUCHDB please? > > > > I have already found and solved the bug. > > > > B. > > > >> On 5 Oct 2016, at 17:42, max <[email protected]> wrote: > >> > >> I cannot add attachment to a document inside _users database. > >> Here is the answer I got: > >> > >> {"error":"unknown_error","reason":"function_clause","ref":1841055428} > >> > >> I've tried in fauxton and from a REST client. > >> Using CouchDB 2.0 Windows version. > >> > >> Thanks. > >> > >> Max. > > > >
