You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/09/13 19:27:20 UTC
[jira] [Commented] (COUCHDB-2731) "authentication_db" for clustered
interface is not considered as sysdb
[ https://issues.apache.org/jira/browse/COUCHDB-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15488158#comment-15488158 ]
ASF GitHub Bot commented on COUCHDB-2731:
-----------------------------------------
GitHub user iilyak opened a pull request:
https://github.com/apache/couchdb-couch/pull/198
Make sure authentication_db for clustered is considered as users db
Fixes the case when the following are configured to something other than _users
- chttpd_auth.authentication_db
- couch_httpd_auth.authentication_db
For chttpd_auth only clustered db should be considered as users_db.
For couch_http_db only node-local db should be considered.
So we take wheither it is a clustered db into account in `is_usersdb/2`.
COUCHDB-2731
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloudant/couchdb-couch 74046-authentication_db-should-be-sysdb
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-couch/pull/198.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 #198
----
commit ef2ff60d3430ead8101102608c1684ceba287046
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Date: 2016-09-13T18:42:47Z
Make sure authentication_db for clustered is considered as users db
Fixes the case when the following are configured to something other than _users
- chttpd_auth.authentication_db
- couch_httpd_auth.authentication_db
For chttpd_auth only clustered db should be considered as users_db.
For couch_http_db only node-local db should be considered.
So we take wheither it is a clustered db into account in `is_usersdb/2`.
COUCHDB-2731
----
> "authentication_db" for clustered interface is not considered as sysdb
> ----------------------------------------------------------------------
>
> Key: COUCHDB-2731
> URL: https://issues.apache.org/jira/browse/COUCHDB-2731
> Project: CouchDB
> Issue Type: Bug
> Reporter: ILYA
> Assignee: ILYA
>
> In case config:get("chttpd_auth", "authentication_db", "_users") returns a non default db name. The configured database is not considered a user's db. Which means callbacks such as `couch_users_db:before_doc_update` are not used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)