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

Connection String: make delimiting slash between hosts and options optional

    • Type: Icon: Spec Change Spec Change
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 5.2.0
    • Affects Version/s: None
    • Component/s: Connection String
    • None
    • Hide

      DRIVERS-2679:

      AC

      Implementation Requirements

      • Ensure that URI parsing logic treats the delimiting slash between hosts and client options as optional
        • E.g.: The URI string "mongodb://example.com?w=1" should parse without error and yield the same results as "mongodb://example.com/?w=1"

      Testing Requirements

      • Sync connection string spec tests updated in this PR
        • affects connection-string/tests/invalid-uris.{yml,json} and connection-string/tests/valid-options.{yml,json}
      Show
      DRIVERS-2679 : AC Implementation Requirements Ensure that URI parsing logic treats the delimiting slash between hosts and client options as optional E.g.: The URI string "mongodb://example.com?w=1" should parse without error and yield the same results as "mongodb://example.com/?w=1" Testing Requirements Sync connection string spec tests updated in this PR affects connection-string/tests/invalid-uris.{yml,json } and connection-string/tests/valid-options.{yml,json }
    • Fully Compatible
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      In the release notes, we can state that the forward slash is now optional.

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      We can choose to remove the trailing forward slash in examples on https://www.mongodb.com/docs/drivers/java/sync/current/fundamentals/connection/connect/.

      3. Which versions of the driver/connector does this apply to?

      5.2.0

      Show
      1. What would you like to communicate to the user about this feature? In the release notes, we can state that the forward slash is now optional. 2. Would you like the user to see examples of the syntax and/or executable code and its output? We can choose to remove the trailing forward slash in examples on https://www.mongodb.com/docs/drivers/java/sync/current/fundamentals/connection/connect/ . 3. Which versions of the driver/connector does this apply to? 5.2.0

      This ticket was split from DRIVERS-2679, please see that ticket for a detailed description.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: