-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Expected Behavior
Class AbstractRedisClientFactory
has the method public RedisClient redisClient(AbstractRedisConfiguration config, @Nullable ClientResources optionalClientResources, @Nullable List<ClientResourcesMutator> mutators) { //...
. The method have the following expression: Optional<RedisURI> uri = config.getUri();
The problem is that password is not copied, when I configured in application.yaml
For example:
redis:
uri: redis://localhost
password: bla-bla
So I receive error: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.
Actual Behaviour
I expect that config.getUri();
return the password writed in application.yaml
Steps To Reproduce
- Clone https://github.com/rost5000/demo-lettuce-micronaut-bug
- Run
docker-compose up -d
- Run micronaut application
- Go to http://localhost:8080/health
- You can see the following string in console:
My Password from application.yaml: null
. It is not expected password that I wrote.
Environment Information
- Windows 10
- Jdk 17 graalvm
Example Application
https://github.com/rost5000/demo-lettuce-micronaut-bug
Version
v3.5.1