[
https://issues.apache.org/jira/browse/COUCHDB-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15370920#comment-15370920
]
ASF GitHub Bot commented on COUCHDB-3000:
-----------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/couchdb-chttpd/pull/115
> 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)