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

Connection string defaults booleans to false instead of null when non-boolean value is specified

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11.0
    • Affects Version/s: None
    • Component/s: Configuration
    • Labels:
      None

      Consider a connection string like mongodb://localhost/?retryWrites=foo.

      The ConnectionString will issue a warning, but then set retryWrites to false. I'd expect it to set it (and any other boolean property) to null, so it picks up the default value (which is not always false).

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: