Hi, I'd like to know if there is a way to fix this issue in CouchDB 2.0 ? I'd like to upgrade but I need this issue to be fixed since my users got some attachments...
Thanks, Max 2016-10-06 9:26 GMT+02:00 max <[email protected]>: > 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. >> > >> >> >
