Skip to content

password is not passed #304

@rost5000

Description

@rost5000

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

  1. Clone https://github.com/rost5000/demo-lettuce-micronaut-bug
  2. Run docker-compose up -d
  3. Run micronaut application
  4. Go to http://localhost:8080/health
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions