[
https://issues.apache.org/jira/browse/COUCHDB-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250125#comment-15250125
]
ASF GitHub Bot commented on COUCHDB-3000:
-----------------------------------------
GitHub user iilyak opened a pull request:
https://github.com/apache/couchdb-chttpd/pull/115
Inject _design/_auth on auth_cache startup
We send start_listener event from init to make sure we call
ensure_auth_ddoc_exists as soon as we can. Rather then calling it on
listener restart.
COUCHDB-3000
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloudant/couchdb-chttpd 3000-inject_auth_ddoc
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-chttpd/pull/115.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 #115
----
commit c8f3497bfa7eb5d30dcddb014772dcd63cd68286
Author: ILYA Khlopotov <[email protected]>
Date: 2016-04-20T15:45:42Z
Inject _design/_auth on auth_cache startup
We send start_listener event from init to make sure we call
ensure_auth_ddoc_exists as soon as we can. Rather then calling it on
listener restart.
COUCHDB-3000
----
> Authentication ddoc is not injected before it's use
> ---------------------------------------------------
>
> Key: COUCHDB-3000
> URL: https://issues.apache.org/jira/browse/COUCHDB-3000
> Project: CouchDB
> Issue Type: Bug
> Reporter: ILYA
>
> We inject auth_ddoc on start_listener event
> [here|https://github.com/apache/couchdb-chttpd/blob/master/src/chttpd_auth_cache.erl#L116:L117].
> However start_listener event is only sent when listener die
> [see|https://github.com/apache/couchdb-chttpd/blob/master/src/chttpd_auth_cache.erl#L114].
> We should call ensure_auth_ddoc_exists (or send start_listener event) from
> init.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)