Skip to content
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

CANNOT connet to Redis with special password #2893

Closed
karlhjm opened this issue Nov 21, 2023 · 0 comments
Closed

CANNOT connet to Redis with special password #2893

karlhjm opened this issue Nov 21, 2023 · 0 comments
Labels

Comments

@karlhjm
Copy link
Contributor

karlhjm commented Nov 21, 2023

Bug report:

Cannot connect to Redis when password with special characters, such as myPass_#123^

Because the package 'machinery' cannot recognize special characters when connect to Redis

The password should be encoded before connecting, such as url.QueryEscape(cfg.Password)

https://github.com/dragonflyoss/Dragonfly2/blob/8f6f20b604bb540c39db5fb7020926e6db2dd9c8/internal/job/job.go#L67

redis bug

Expected behavior:

successfully connect to redis

How to reproduce it:

Redis password with special characters, such as myPass_#123^

Environment:

  • Dragonfly version: release-2.1.0
  • OS: ubuntu 16.04
  • Others: k8s 1.20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants