Closed frwdrik closed 1 year ago
@frwdrik Hi Fredrik, thanks for this! And apologies for the unintended break!
This will be included in Carmine v3.3 currently scheduled for June, or sooner if I cut any hotfixes before then.
In the meantime, you can either adjust your URI or switch to using explicit conn opts to avoid the (less flexible / more fragile) parser. See also https://github.com/ptaoussanis/carmine/issues/279
Cheers :-)
Hi! Thanks for the quick response :) Apologies for not seeing #279, I also see the recent commit on master is a fix for that issue. Looking forward to the next release! Closing this PR now.
Apologies for not seeing https://github.com/ptaoussanis/carmine/issues/279
No worries, it's only partly related - your particular issue still required an independent fix.
I also see the recent commit on master is a fix for that issue.
To clarify: the recent commit on master is basically your proposed fix :-) I wouldn't have been aware of this if you hadn't raised your issue 👍
Issue: When given a URI like
redis://:pass@localhost:6379-/
, Carmine 3.1.0 would authenticate to Redis using only password, while Carmine 3.2.0 now passes an empty string""
as username to Redis. This is a breaking change.Fix: Only add username to connection spec when it's parsed as a non-empty string. Another option is to supply the implicit
default
username that Redis uses when no username is provided.