Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2090

Cannot authenticate database user with utf-8 password

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.2.2
    • Affects Version/s: 2.10.0
    • Component/s: Authentication
    • None
    • Environment:
      linux x86_64

      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

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            florin.popescu0110 Florin Marius Popescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: