Skip to content

Commit

Permalink
Fix password handling for in-mem Redis (#7577)
Browse files Browse the repository at this point in the history
The `PASSWORD` setting is not a URL, so it should not be URL-encoded.
  • Loading branch information
SpecLad authored Mar 11, 2024
1 parent 95e6f26 commit 7a1fc3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog.d/20240308_193911_roman_extra_encoding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Fixed

- Fixed being unable to connect to in-mem Redis
when the password includes URL-unsafe characters
(<https://github.com/opencv/cvat/pull/7577>)
2 changes: 1 addition & 1 deletion cvat/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class CVAT_QUEUES(Enum):
'HOST': redis_inmem_host,
'PORT': redis_inmem_port,
'DB': 0,
'PASSWORD': urllib.parse.quote(redis_inmem_password),
'PASSWORD': redis_inmem_password,
}

RQ_QUEUES = {
Expand Down

0 comments on commit 7a1fc3f

Please sign in to comment.