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

spring.data.redis.cluster.nodes and spring.data.redis.sentinel.nodes do not handle IPv6 addresses correctly #39819

Closed
wants to merge 2 commits into from

Conversation

tobi-laa
Copy link
Contributor

@tobi-laa tobi-laa commented Mar 1, 2024

When specifying colon-separated pairs of host and port with IPv6 addresses (i.e. [::1]:6379) for either spring.data.redis.cluster.nodes or spring.data.redis.sentinel.nodes, the parsing of these nodes/addresses was broken as the splitting of these strings was not performed explicitly on the last found colon. The behavior is fixed with this PR.

@pivotal-cla
Copy link

@tobi-laa Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 1, 2024
@pivotal-cla
Copy link

@tobi-laa Thank you for signing the Contributor License Agreement!

@tobi-laa
Copy link
Contributor Author

tobi-laa commented Mar 4, 2024

Fixed formatting.

@tobi-laa
Copy link
Contributor Author

tobi-laa commented Mar 7, 2024

Fixed Checkstyle violation. Sorry, should have fixed that from the start.

@mhalbritter
Copy link
Contributor

If you run ./gradlew build, you get those errors on your local machine instead of waiting for the CI.

@wilkinsona wilkinsona changed the title Fix handling of nodes with IPv6 addresses for Redis sentinel and cluster auto-config spring.data.redis.cluster.nodes and spring.data.redis.sentinel.nodes do not handle IPv6 addresses correctly Mar 15, 2024
@wilkinsona wilkinsona added this to the 3.1.x milestone Mar 15, 2024
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 15, 2024
@wilkinsona wilkinsona self-assigned this Mar 15, 2024
@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label Mar 15, 2024
@wilkinsona wilkinsona removed their assignment Mar 18, 2024
@tobi-laa
Copy link
Contributor Author

@wilkinsona Thank you for the review! I updated the PR accordingly.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Mar 19, 2024
@wilkinsona wilkinsona self-assigned this Apr 22, 2024
@wilkinsona wilkinsona removed the status: feedback-provided Feedback has been provided label Apr 22, 2024
@wilkinsona wilkinsona modified the milestones: 3.1.x, 3.1.12 Apr 22, 2024
wilkinsona pushed a commit that referenced this pull request Apr 22, 2024
@wilkinsona
Copy link
Member

@tobi-laa thanks very much for making your first contribution to Spring Boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants