Skip to content

BC Break when using Redis transport with an empty username #43306

Closed
@alexsegura

Description

@alexsegura

Symfony version(s) affected: 5.3.8

Description

I'm using Symfony Messenger with Redis transport (it's Redis 5.x), and when upgrading symfony/redis-messenger 5.3.8, my current setup is broken.

The errors are:

Symfony\Component\Messenger\Exception\InvalidArgumentException
Redis connection failed: ERR wrong number of arguments for 'auth' command
ErrorException
Warning: Redis::auth() expects parameter 1 to be string, array given

It used to work with the following configuration:

MESSENGER_TRANSPORT_DSN="redis://:password@host/messages/symfony/consumer"

There are some changes between 5.3.7 and 5.3.8 that might explain the bug

symfony/redis-messenger@v5.3.7...v5.3.8

How to reproduce

Configure Redis transport with the following env var:

MESSENGER_TRANSPORT_DSN="redis://:password@host/messages/symfony/consumer"

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