Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUST-229 Connection string parser does not support IPv6 addresses #916

Closed
aqrln opened this issue Jul 21, 2023 · 3 comments
Closed

RUST-229 Connection string parser does not support IPv6 addresses #916

aqrln opened this issue Jul 21, 2023 · 3 comments
Assignees
Labels
tracked-in-jira Ticket filed in Mongo's Jira system

Comments

@aqrln
Copy link

aqrln commented Jul 21, 2023

Versions/Environment

[email protected], [email protected] and latest from git

Describe the bug

ServerAddress::parse simply splits the hostname and port by : character which doesn't work with IPv6 addresses, as it splits in the middle of the address and not after the ] character.

To Reproduce

  1. Try to connect with a connection string like mongodb://root:root@[::1]:27018/tests
  2. The driver returns the following error: port must be valid 16-bit unsigned integer, instead got:
@isabelatkinson
Copy link
Contributor

Hi @aqrln, RUST-229 tracks the progress of implementing ipv6 address support. We do not currently have this work on our roadmap, but we would welcome a pull request if this is something you are looking for in the near future.

@isabelatkinson isabelatkinson added tracked-in-jira Ticket filed in Mongo's Jira system and removed triage labels Jul 21, 2023
@isabelatkinson isabelatkinson changed the title Connection string parser does not support IPv6 addresses RUST-229 Connection string parser does not support IPv6 addresses Jul 21, 2023
@aqrln
Copy link
Author

aqrln commented Jul 21, 2023

Got it, thanks for the quick response @isabelatkinson!

@isabelatkinson
Copy link
Contributor

Closing this as RUST-229 has been implemented and will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracked-in-jira Ticket filed in Mongo's Jira system
Projects
None yet
Development

No branches or pull requests

2 participants