Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5610

Options parsing accepts invalid uris on Node 18 and 20

    • 2
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      When running unit tests on an environment using Node v18.17 and Node 20, there are failures in the following spec test cases: invalid port (zero) with hostname and invalid port (zero) with IP literal. This error does not appear on Node v18.13.

      Use Case

      As a user,
      I want to have errors thrown for invalid URIs
      So that debugging is more straight-forward.

      User Impact

      • Currently invalid URIs will cause connection to hang.

      Dependencies

      Affects Shell - connecting to invalid URI will cause connection to hang

      Unknowns

      N/A

      Acceptance Criteria

      Implementation Requirements

      Testing Requirements

      • Unit Tests Passing on Node 18.17

      Documentation Requirements

      • N/A - revisit during kick-off

      Follow Up Requirements

      • N/A

            Assignee:
            aditi.khare@mongodb.com Aditi Khare
            Reporter:
            aditi.khare@mongodb.com Aditi Khare
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: