ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: 5.14.0
    • None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      ConnectionString lower-cases each option name with String.toLowerCase(), which uses the JVM default locale, so under tr-TR "maxIdleTimeMS" becomes "maxıdletimems" with a dotless ı and the option is dropped with only a warning in the log. With 5.14.0, -Duser.language=tr -Duser.country=TR and mongodb://db1.example.com/?maxIdleTimeMS=60000&tls=true&tlsAllowInvalidHostnames=true, getMaxConnectionIdleTime() and getSslInvalidHostnameAllowed() return null instead of 60000 and true. ServerAddress lower-cases host names the same way, so "MONGO-PRIMARY.LOCAL" becomes "mongo-prımary.local". Using toLowerCase(Locale.ROOT) fixes both; I can open a PR with unit tests once there is a ticket.

            Assignee:
            Unassigned
            Reporter:
            Sharang Gupta (EXT)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: