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

Database name should be checked for validity in connection string

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.0
    • Affects Version/s: None
    • Component/s: Configuration
    • Labels:
      None

      Add check for database name validity against the following description, from the connection string specification, of disallowed characters:

      The following characters MUST NOT appear in the database name, once it has been decoded: slash, backslash, space, double-quote, or dollar sign.

      Because ConnectionString will delegate to MongoNamespace#checkDatabaseNameValidity for this check, and MongoNamespace has to support namespace strings like "$external.$cmd", the Java driver will not prohibit the dollar sign character at this time.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: