Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Cache] Only validate dbindex parameter when applicable #49353

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

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

loevgaard
Copy link
Contributor

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

It does not make sense to validate the path parameter when we know that there can't be a dbindex. The problem with this validation is that it actually triggers when DSN looks something like: redis://127.0.0.1:51148/ which happened to me in rare cases.

@stof
Copy link
Member

stof commented Feb 13, 2023

Can you add a test covering it to prevent regressions ?

@carsonbot carsonbot changed the title Only validate dbindex parameter when applicable [Cache] Only validate dbindex parameter when applicable Feb 13, 2023
@nicolas-grekas
Copy link
Member

Thank you @loevgaard.

@nicolas-grekas nicolas-grekas merged commit cd34f41 into symfony:5.4 Feb 13, 2023
@loevgaard loevgaard deleted the patch-2 branch February 13, 2023 12:55
@loevgaard
Copy link
Contributor Author

Thank you 🎉

This was referenced Feb 28, 2023
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.

4 participants