Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-634

Driver should not warn about "database name ignored"

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      When using a MongoDB URL containing a database name and no password, PyMongo outputs: "UserWarning: database name or authSource in URI is being ignored. If you wish to authenticate to goji, you must provide a username and password."

      This assumes that PyMongo is the only consumer of the MongoDB URL, which is often not the case. (Our codebase extracts the database name from the URL.)

      Working around this is ugly (eg. generating different URLs) and the warning is spammy when using multiprocessing.Pool. The authSource part might make sense, since it's probably meaningless without a password, but please remove the warning about ignoring the database name.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            glenn Glenn Maynard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: