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

Extend Socks5 TLD regex validation to support up to 63 characters #1427

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

vbabanin
Copy link
Member

@vbabanin vbabanin commented Jun 27, 2024

Changes:

Modified the regex pattern to support top-level domain (TLD) lengths of up to 63 characters, in accordance with RFC 1034 standards.

Purpose:

This update ensures our regex can handle the 'internal' TLD used in EC2 guest OS hostnames, thus increasing the flexibility of TLD validation.

JAVA-5490

…haracters to comply with RFC 1034 standard.

JAVA-5490
@vbabanin vbabanin requested a review from rozza June 27, 2024 01:25
Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rozza
Copy link
Member

rozza commented Jun 27, 2024

Only question: Should there be a drivers ticket for this change (for those drivers that regex validate TLDs)? Maybe a prose test?

@vbabanin
Copy link
Member Author

Only question: Should there be a drivers ticket for this change (for those drivers that regex validate TLDs)? Maybe a prose test?

Thanks for your question. There’s no need for a driver's ticket as the regex validation of domain names is only implemented in Java driver.

@vbabanin vbabanin merged commit e4b8a83 into mongodb:master Jun 28, 2024
63 checks passed
vbabanin added a commit to vbabanin/mongo-java-driver that referenced this pull request Jun 28, 2024
…haracters to comply with RFC 1034 standard. (mongodb#1427)

JAVA-5490

(cherry picked from commit e4b8a83)
vbabanin added a commit to vbabanin/mongo-java-driver that referenced this pull request Jun 28, 2024
…haracters to comply with RFC 1034 standard. (mongodb#1427)

JAVA-5490
vbabanin added a commit to vbabanin/mongo-java-driver that referenced this pull request Jun 28, 2024
…haracters to comply with RFC 1034 standard. (mongodb#1427)

JAVA-5490
stIncMale pushed a commit that referenced this pull request Jun 28, 2024
…haracters to comply with RFC 1034 standard. (#1427) (#1429)

This is a backport of #1427

JAVA-5490

(cherry picked from commit e4b8a83)
stIncMale pushed a commit that referenced this pull request Jun 28, 2024
…haracters to comply with RFC 1034 standard. (#1427) (#1430)

This is a backport of #1427

JAVA-5490
stIncMale pushed a commit that referenced this pull request Jun 28, 2024
…haracters to comply with RFC 1034 standard. (#1427) (#1431)

This is a backport of #1427

JAVA-5490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants