From 9de2e8c34298143648e8d408e8f1f76622bb913c Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sat, 1 Apr 2017 09:44:50 +0200 Subject: [PATCH] Added a note about using ":" in Redis passwords --- components/cache/cache_pools.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/cache/cache_pools.rst b/components/cache/cache_pools.rst index d7ee56b809a..7343cd967ff 100644 --- a/components/cache/cache_pools.rst +++ b/components/cache/cache_pools.rst @@ -129,6 +129,15 @@ helper allows creating a connection to a Redis server using a DSN configuration: See the method's docblock for more options. +.. caution:: + + Redis connections don't support login + password credentials, but just a + password. This can produce undesired effects when the password contains a + ``:`` character (e.g. ``foo:bar`` password would be wrongly parsed as ``foo`` + login + ``bar`` password). The solution is to add a fake login to the + connection DSN. Instead of ``'redis://foo:bar@localhost'``, use + ``'redis://__ignore_this__:foo:bar@localhost'`` + PDO & Doctrine DBAL Cache Adapter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~