tonysun83 commented on issue #627: Pass UserCtx to fabric's all_docs from mango query URL: https://github.com/apache/couchdb/pull/627#issuecomment-312679369 I think we wanted to convert the mango test framework over to eunit at some point. It's become such a clunky thing. I guess we could also convert the entire thing over to js as well. @eiri: I read the first parts of the bug report. Now I see with an index created and posted by @wohali ``` [error] 2017-05-22T23:22:03.877980Z [email protected] <0.17275.0> 81bbcf9c62 req_err(3408688270) badrecord : vacc [<<"fabric:query_view/6 L343">>,<<"mango_cursor_view:execute/3 L98">>,<<"mango_httpd:handle_find_req/2 L185">>,<<"mango_httpd:handle_req/2 L37">>,<<"chttpd:process_request/1 L295">>,<<"chttpd:handle_request_int/1 L231">>,<<"mochiweb_http:headers/6 L122">>,<<"proc_lib:init_p_do_apply/3 L237">>] ``` This is interesting because when it's users_db in query_view we're doing: ``` case fabric_util:is_users_db(Db) of true -> Req = Acc0#vacc.req, FakeDb = fabric_util:fake_db(Db, [{user_ctx, Req#httpd.user_ctx}]), couch_users_db:after_doc_read(DDoc, FakeDb); ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
