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

   @Napsty Wonder if they added an extra `validate_doc_update` function (a VDU) 
which is checking that each document should have city/country fields and fails 
otherwise? On it's own just adding extra fields should be ok. For instance, 
here I add city and country fields just fine:
   
   ```
   %  curl -X PUT http://adm:pass@localhost:15984/_users/org.couchdb.user:jan 
        -H "Accept: application/json" 
       -H "Content-Type: application/json"
       -d '{"name": "jan", "password": "apple", "roles": [], "type": "user", 
"city":"London", "country":"UK"}'
   
   
{"ok":true,"id":"org.couchdb.user:jan","rev":"1-4fd560a1713729f535b2a822ad95f3c4"}
   ```
   
   ```
   % curl http://adm:pass@localhost:15984/_users/org.couchdb.user:jan
   {
   "_id":"org.couchdb.user:jan",
   "_rev":"1-4fd560a1713729f535b2a822ad95f3c4",
   "password_scheme":"pbkdf2",
   "pbkdf2_prf":"sha256",
   "salt":"d4e412307a2cef7aaebe07e8789a3429",
   "iterations":600000,
   "derived_key":
   "28b2f379fb4d7609099ae8292cde6363e4c530ef765e96737d2e68001411b5af",
   "name":"jan",
   "roles":[],
   "type":"user",
   "city":"London",
   "country":"UK"
   }
   ```
   
   But in your case it looks like something is performing extra validation 
somewhere.
   


-- 
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