[
https://issues.apache.org/jira/browse/COUCHDB-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15370917#comment-15370917
]
ASF subversion and git services commented on COUCHDB-3000:
----------------------------------------------------------
Commit 3953f800aa420a76fe7a654cc27e653afd6d254d in couchdb-chttpd's branch
refs/heads/master from [~iilyak]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=3953f80 ]
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)