[JAVA-2403] Don't require a username in the connection string for MONGODB-X509 Created: 09/Dec/16 Updated: 18/Apr/17 Resolved: 12/Dec/16 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Authentication, Configuration |
| Affects Version/s: | 3.4.0 |
| Fix Version/s: | 3.4.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | MongoDB 3.4 for Java driver | ||||||||
| Description |
|
As of MongoDB 3.4 the username is optional for the X.509 authentication mechanism, and the Java driver supports that as of version 3.4.0 when using the MongoCredential API. But when using a connection string like:
the driver silently ignores the authMechanism. The driver should instead respect the auth mechanism, treating it as equivalent to:
For all other authMechanism, an IllegalArgumentException should be thrown if no username is specified. |
| Comments |
| Comment by Githook User [ 12/Dec/16 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: For all other mechanisms throw an IllegalArgumentException if there is no username |
| Comment by Githook User [ 12/Dec/16 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: For all other mechanisms throw an IllegalArgumentException if there is no username |