GitHub user eiri opened a pull request:

    https://github.com/apache/couchdb-chttpd/pull/150

    Include user_ctx in db open options

    Previously original `Db` record was kept on `filter_fun` tuple in 
`#changes_args` and passed to the filters. Now we are throwing it away and 
including `Db` record build in fabric, which has `user_ctx` stripped from it. 
As a result `UserCtx` object passed to the filter functions in ddoc is missing 
user's name and role.
    
    The fix includes original `user_ctx` into db open parameters, so `Db` 
record build in fabric will have it properly set.
    
    COUCHDB-3233

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb-chttpd 
78077-pass-user_ctx_to_filter

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-chttpd/pull/150.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #150
    
----
commit 8f5ccf948e6144c316c32b3035e339c7f1c0fd4c
Author: Eric Avdey <[email protected]>
Date:   2016-11-11T14:56:23Z

    Include user_ctx in db open options

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to