Napsty commented on issue #5436:
URL: https://github.com/apache/couchdb/issues/5436#issuecomment-2670620277

   > On it's own just adding extra fields should be ok
   
   Good to know, thanks. I just verified this and the original fields/keys are 
still in the _users table. 
   A lot of additional keys were created in that table.
   
   > Wonder if they added an extra validate_doc_update function
   
   I looked this up, and you're spot on:
   
   ```
   $ curl -s http://localhost:5984/_users/_design/user -u adm:secret  | jq
   {
     "_id": "_design/user",
     "_rev": "15-588b1716de43ee8b9b12fa95c11f368d",
     "validate_doc_update": "function(newDoc, oldDoc, userCtx, secObj) {\n    
if (newDoc._deleted === true) {\n 
   [...]
   ```
   
   This definitely seems to be the reason why I got the error trying to add a 
user. The CouchDB user seems to add users to _users with the relevant/required 
fields.
   
   Could this function also be the cause (interfere) why a "per user db" is not 
created anymore?
   
   What is your recommendation in general? Is it a good or bad idea to use 
_users as application user database? 
   
   Appreciate your hints and insights, thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to