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

[HttpFoundation] fix redis multi host dsn not recognized #34967

Merged
merged 1 commit into from Dec 13, 2019

Conversation

BeyerJC
Copy link

@BeyerJC BeyerJC commented Dec 13, 2019

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #34477
License MIT

#34177 added support configurating session handlers with DSNs. It was no possible to pass a redis-DSN like
redis:?host[localhost]&host[localhost:6379]&host[/var/run/redis.sock:]&auth=my-password&redis_cluster=1'

since the check was
case 0 === strpos($connection, 'redis://'):

@nicolas-grekas nicolas-grekas changed the title fix redis multi host dsn not recognized [Cache] fix redis multi host dsn not recognized Dec 13, 2019
@nicolas-grekas nicolas-grekas changed the title [Cache] fix redis multi host dsn not recognized [HttpFoundation] fix redis multi host dsn not recognized Dec 13, 2019
@nicolas-grekas
Copy link
Member

Thank you @WhiteRabbitDE.

nicolas-grekas added a commit that referenced this pull request Dec 13, 2019
…Jan Christoph Beyer)

This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] fix redis multi host dsn not recognized

| Q             | A
| ------------- | ---
| Branch?       |  4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34477
| License       | MIT

#34177 added support configurating session handlers with DSNs. It was no possible to pass a redis-DSN like
`redis:?host[localhost]&host[localhost:6379]&host[/var/run/redis.sock:]&auth=my-password&redis_cluster=1'`

since the check was
`case 0 === strpos($connection, 'redis://'):`

Commits
-------

81ba07a fix redis multi host dsn not recognized
@nicolas-grekas nicolas-grekas merged commit 81ba07a into symfony:4.4 Dec 13, 2019
This was referenced Dec 19, 2019
@BeyerJC BeyerJC deleted the bugfix/fix-redis-cluster-dsn branch March 24, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants