[GODRIVER-1625] Single character passwords not handled Created: 26/May/20  Updated: 28/Oct/23  Resolved: 16/Jun/20

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.5

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The URI parser sets PasswordSet to true if the user info contains a ":" but only parses the password if it's of length greater than 1. A single-character password is valid, so that check should be for greater than 0.



 Comments   
Comment by Githook User [ 16/Jun/20 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1625 Allow and validate single character credentials (#424)

Co-authored-by: Jun Li <472780330@qq.com>
Branch: release/1.3
https://github.com/mongodb/mongo-go-driver/commit/dd746f4045f92c6cdfc872c2c62a0687b693cccb

Comment by Githook User [ 16/Jun/20 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1625 Allow and validate single character credentials (#424)

Co-authored-by: Jun Li <472780330@qq.com>
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/3446ea5c7bba003ee88c49dda3b3a7681c2a48e8

Comment by Divjot Arora (Inactive) [ 11/Jun/20 ]

https://github.com/mongodb/mongo-go-driver/pull/424

Comment by Divjot Arora (Inactive) [ 26/May/20 ]

SeeĀ https://github.com/mongodb/mongo-go-driver/pull/408

Generated at Thu Feb 08 08:36:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.