-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Conversation
@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. |
@tobi-laa Thank you for signing the Contributor License Agreement! |
Fixed formatting. |
Fixed Checkstyle violation. Sorry, should have fixed that from the start. |
If you run |
...java/org/springframework/boot/autoconfigure/data/redis/PropertiesRedisConnectionDetails.java
Outdated
Show resolved
Hide resolved
...java/org/springframework/boot/autoconfigure/data/redis/PropertiesRedisConnectionDetails.java
Outdated
Show resolved
Hide resolved
…s sentinel and cluster auto-config
@wilkinsona Thank you for the review! I updated the PR accordingly. |
@tobi-laa thanks very much for making your first contribution to Spring Boot. |
When specifying colon-separated pairs of host and port with IPv6 addresses (i.e.
[::1]:6379
) for eitherspring.data.redis.cluster.nodes
orspring.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.