[DOCS-8849] db.changeUserPassword() parameters are incorrect in documentation Created: 22/Sep/16  Updated: 30/Oct/23  Resolved: 12/Oct/17

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: James Kovacs Assignee: Stennie Steneker (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 6 years, 18 weeks ago
Story Points: 0.2

 Description   

https://docs.mongodb.com/v3.2/reference/method/db.changeUserPassword/

Parameters are listed as username, password, mechanism, and digestPassword, but the shell disagrees.

MongoDB shell version: 3.2.9
connecting to: test
> db.changeUserPassword
function (username, password, writeConcern) {
this.updateUser(username,

{pwd: password}

, writeConcern);
}

I checked previous versions and this is the code all the way back to 2.6.9. The code was slightly different in 2.4.14 as it didn't include the writeConcern parameter.

Please correct the function definition to remove mechanism and digestPassword parameters and add the writeConcern parameter.



 Comments   
Comment by Githook User [ 12/Oct/17 ]

Author:

{'email': 'stennie@cpan.org', 'name': 'Stephen Steneker', 'username': 'stennie'}

Message: DOCS-8849: db.changeUserPassword() parameters are incorrect in documentation

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.2
https://github.com/mongodb/docs/commit/bb8c1f864b8cc894c20ba68ebef670354ae5047f

Comment by Githook User [ 12/Oct/17 ]

Author:

{'email': 'stennie@cpan.org', 'name': 'Stephen Steneker', 'username': 'stennie'}

Message: DOCS-8849: db.changeUserPassword() parameters are incorrect in documentation

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.4
https://github.com/mongodb/docs/commit/3f29a440ebad9329834747a3e3104c6d596caf59

Comment by Githook User [ 12/Oct/17 ]

Author:

{'email': 'stennie@cpan.org', 'name': 'Stephen Steneker', 'username': 'stennie'}

Message: DOCS-8849: db.changeUserPassword() parameters are incorrect in documentation

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/577f8826b5186a0db5b9c70b23320e80250dcf9c

Generated at Thu Feb 08 07:57:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.