ArangoDB REST API: 无法设置用户密码

ArangoDB REST API: Unable to set user password

我可以按照文档中的说明创建用户:

curl -X POST --user root:root --data-binary @- --dump - http://localhost:8529/_api/user <<EOF
{ 
  "user" : "testUser", 
  "password" : "secure" 
}
EOF

但是 Arango 似乎忽略了密码参数。

curl -v --user testUser:secure http://localhost:8529/_api/user/testUser

Returns一个401

同时:

curl -v --user testUser: http://localhost:8529/_api/user/testUser

Returns一个200

我是不是做错了什么?

我不得不原谅我们的文档团队 - 你显然从

复制了 CURL 示例

https://docs.arangodb.com/3.0/HTTP/UserManagement/index.html

在示例的 post 正文中有错字(在 3.0 发布周期中添加)。正如主体参数参数描述所命名的那样,密码是通过 passwd 键而不是 password 键指定的。

错误已更正,文档的更新版本即将上线。

感谢您花时间深入挖掘。