Napsty opened a new issue, #5436:
URL: https://github.com/apache/couchdb/issues/5436

   [NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ 
)
   
   ## Description
   
   Tried to create a simple user in _users database, according to the 
documentation 
(https://docs.couchdb.org/en/stable/intro/security.html#creating-a-new-user)
   
   ## Steps to Reproduce
   
   Run `curl` command, as seen in the documentation:
   
   ```
   $ curl -X PUT 
http://admin:secretpw@localhost:5984/_users/org.couchdb.user:jan -H "Accept: 
application/json" -H "Content-Type: application/json" -d '{"name": "jan", 
"password": "apple", "roles": [], "type": "user"}'
   ```
   
   The following error appears:
   
   ```
   
{"error":"unknown_error","reason":"{[{<<\"_id\">>,<<\"org.couchdb.user:jan\">>},\n
  {<<\"type\">>,<<\"user\">>},\n  {<<\"updated_by\">>,\n   
{[{<<\"errorMessage\">>,\n      <<\"StringValidator expected a string but 
received undefined.\">>}]}},\n  {<<\"d_updated\">>,\n   
{[{<<\"errorMessage\">>,\n      <<\"dateValidator expected a string but 
received undefined.\">>}]}},\n  {<<\"firstname\">>,\n   
{[{<<\"errorMessage\">>,\n      <<\"StringValidator expected a string but 
received undefined.\">>}]}},\n  {<<\"surname\">>,\n   
{[{<<\"errorMessage\">>,\n      <<\"StringValidator expected a string but 
received undefined.\">>}]}},\n  {<<\"name\">>,<<\"jan\">>},\n  
{<<\"roles\">>,[]},\n  {<<\"street\">>,\n   {[{<<\"errorMessage\">>,\n      
<<\"StringValidator expected a string but received undefined.\">>}]}},\n  
{<<\"zip\">>,\n   {[{<<\"errorMessage\">>,\n      <<\"StringValidator expected 
a string but received undefined.\">>}]}},\n  {<<\"city\">>,\n   
{[{<<\"errorMessage\">>,\n      <<\"St
 ringValidator expected a string but received undefined.\">>}]}},\n  
{<<\"country\">>,\n   {[{<<\"errorMessage\">>,\n      <<\"StringValidator 
expected a string but received undefined.\">>}]}},\n  {<<\"gender\">>,\n   
{[{<<\"errorMessage\">>,\n      <<\"StringValidator expected a string but 
received undefined.\">>}]}},\n  {<<\"birthday\">>,\n   
{[{<<\"errorMessage\">>,\n      <<\"dateValidator expected a string but 
received undefined.\">>}]}},\n  
{<<\"salt\">>,<<\"19f88637fb2f3a3d32520e441567fe94\">>},\n  
{<<\"password_scheme\">>,<<\"pbkdf2\">>},\n  
{<<\"derived_key\">>,<<\"ade9a4560ef513cf442d1397f2962bed53dfaba9\">>},\n  
{<<\"iterations\">>,10},\n  {<<\"format\">>,<<\"short\">>}]}"}
   ```
   
   Also tried with `-d '{"_id": "org.couchdb.user:jan", "name": "jan", 
"password": "apple", "roles": [], "type": "user"}'`, same error.
   
   ## Expected Behaviour
   
   The user should be created.
   
   ## Your Environment
   
   ```
   
{"couchdb":"Welcome","version":"3.3.2","git_sha":"11a234070","uuid":"748bdf2cfcee138d002d7e7fb251f1c1","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The
 Apache Software Foundation"}}
   ```
   
   
   * CouchDB version used: 3.3.2
   * Browser name and version: irrelevant
   * Operating system and version: Debian 11
   


-- 
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.apache.org

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

Reply via email to