[JAVA-2090] Cannot authenticate database user with utf-8 password Created: 18/Jan/16  Updated: 04/Apr/16  Resolved: 09/Feb/16

Status: Closed
Project: Java Driver
Component/s: Authentication
Affects Version/s: 2.10.0
Fix Version/s: 3.2.2

Type: Improvement Priority: Minor - P4
Reporter: Florin Marius Popescu Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

linux x86_64



 Description   

Hello

I have a database user with: username == 'user' and password == 'passwordUtfééùù'.

DB db= mongoClient.getDB("db");
db.authenticate(username, password.toCharArray());

throws java.lang.IllegalArgumentException: can't handle non-ascii passwords yet

Same thing on Nodejs latest driver. https://jira.mongodb.org/browse/NODE-638

mongodb version: 2.4.6
java mongodb driver: mongodb-2.11.1.jar

I did not test on latest mongodb driver. Sorry if this is fixed on latest.

Thanks



 Comments   
Comment by Florin Marius Popescu [ 04/Apr/16 ]

Thanks

Comment by Jeffrey Yemin [ 16/Feb/16 ]

Closed for 3.2.2 release

Comment by Githook User [ 09/Feb/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2090: Support non-ASCII passwords
Branch: 3.2.x
https://github.com/mongodb/mongo-java-driver/commit/595b11f89da1a6c496f997a6012c77ad695efe93

Comment by Githook User [ 08/Feb/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2090: Support non-ASCII passwords
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1ce3ac6ef46eeea52a52c9e5fdfb377ef8eb4e48

Comment by Jeffrey Yemin [ 19/Jan/16 ]

This is indeed a limitation of the Java driver, up to and including the most recent releases (2.14.1 and 3.2.1, currently). For now, please limit yourself to ASCII passwords, while we consider when we can address this issue.

Regards,
Jeff

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