[ 
https://issues.apache.org/jira/browse/COUCHDB-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280542#comment-14280542
 ] 

Mike Wallace commented on COUCHDB-2510:
---------------------------------------

Found a minor problem adding users to the auth DB with this patch - a request 
to add a user to the auth DB on 5984 will fail with a 500: 
https://gist.github.com/mikewallace1979/12af6d70fc7a3f348bda

It's referencing MFAs that don't exist - couch_users_db:before_doc_update/1 and 
couch_replicator_manager:before_doc_update/1 should actually be arity 2.

> Apply system db before_doc_update functions in fabric
> -----------------------------------------------------
>
>                 Key: COUCHDB-2510
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2510
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Database Core
>            Reporter: Paul Joseph Davis
>            Assignee: Paul Joseph Davis
>
> This is mostly for the users db because it makes random changes to the user 
> documents before writing them to disk. In a cluster this is a guarantee that 
> we'll end up with three conflicts each time a user updates their password.
> This just hardcodes the two system databases into fabric's doc update handler 
> the same as they're hard coded in couch_server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to