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

    XMLWordPrintable

    Details

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

      Description

      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).

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: