-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Password is not used from spring.data.redis.url property without username #35850
Comments
Thanks for the report, I've edited your description to replace "guys" with "team". While it may seem like a small thing, some people feel excluded by "guys" and we don't want them to. |
@vuzem I am confused that you're saying it works with Spring Boot 2.7. In Spring Boot 2.7, the property was |
Hi @snicoll, thanks for your answer. Sorry for not being precise enough, for Spring Boot 2, the property needs to be Sample project with Spring Boot 2.7.12 and property Sample project with Spring Boot 3.1.0 and property Cheers |
Thanks very much for the sample. The Redis URL in the sample is The previous code assumed that a userinfo without a |
Hi team,
it appears that a provided password in the spring.data.redis.url property is not taken into account since Spring Boot 3 (version used 3.1.0), which lets a Redis connection fail.
For example, the password is provided in this spring.data.redis.url property:
spring.data.redis.url=redis://password@redis-host:6379
And when retrieving the password from, for example, a RedisStandaloneConfiguration, the password is empty:
As mentioned above, the password is provided when running this configuration with Spring Boot 2 (2.7.12).
Thanks and cheers
Alex
The text was updated successfully, but these errors were encountered: