[SERVER-30458] Remove dead code from JS client db.auth() workflow allowing three args Created: 01/Aug/17 Updated: 30/Oct/23 Resolved: 02/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.11 |
| Type: | Task | Priority: | Trivial - P5 |
| Reporter: | Sara Golemon | Assignee: | Sara Golemon |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Platforms 2017-08-21 |
| Participants: |
| Description |
|
The raw mongoAuth() interface in the JS driver understands a three arg call as mongo.auth(db, user, pass) which is hardcoded to MONGODB-CR. In practice this is never reached since db.js normalizes calls to db.auth() into just the one (object) or two (string,string) arg forms (the latter being translated into the former by the JS helper code). This diff removes the dead code path and simplifies the C++/JS connector. |
| Comments |
| Comment by Githook User [ 10/Aug/17 ] |
|
Author: {'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com'}Message: |