pallets-eco / flask-caching

A caching extension for Flask
https://flask-caching.readthedocs.io
Other
894 stars 194 forks source link

Connection Error with Special Characters In Password #589

Open Step1N opened 2 months ago

Step1N commented 2 months ago

While connecting with redis server with special character (containing '#' in this case) in password. It throws "WRONGPASS invalid username-password pair or user is disabled"

REDIS_SERVER="server host info" from urllib.parse import quote REDIS_PASSWORD=quote("assdf#sf!ewo") REDIS_URL = "".join(['rediss://:', REDIS_PASSWORD, '@', REDIS_SERVER, '/1']) CACHE_CONFIG: CacheConfig ={ 'CACHE_TYPE': "redis", 'CACHE_REDIS_URL': REDIS_URL, 'CACHE_KEY_PREFIX': 'cacheprefix', 'CACHE_THRESHOLD': 100 }

For redis server am using aws elastic cache version 7.1.0

Expected: It should connect with server even special character in password

Environment: