Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Lock] Fix predis command error checking#59348

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

dciprian-petrisor
Copy link
Contributor

QA
Branch?7.2
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#59087
LicenseMIT

We seem to have had an incompatibility with how Predis clients are initialized ('exceptions' => false) and the implementation of RedisStore, which only surfaced now due to the recent EVAL -> EVALSHA changes.

According tohttps://github.com/symfony/symfony/blob/7.2/src/Symfony/Component/Cache/Traits/RedisTrait.php#L65 and
https://github.com/symfony/symfony/blob/7.2/src/Symfony/Component/Cache/Traits/RedisTrait.php#L419 , the Predis client is always initialized with exceptions disabled; it returns Error objects instead.

This PR fixes the tests to replicate this behaviour and the implementation.

An small additional change was made regarding error checking, to ensure the initialevalSha does not fail with anything else besides the expectedNOSCRIPT error.

Yondz and ro0NL reacted with thumbs up emoji
@fabpot
Copy link
Member

Thank you@dciprian-petrisor.

@fabpotfabpot merged commitb048d76 intosymfony:7.2Jan 4, 2025
11 checks passed
@fabpotfabpot mentioned this pull requestJan 29, 2025
nicolas-grekas added a commit that referenced this pull requestFeb 4, 2025
This PR was merged into the 7.2 branch.Discussion----------[Lock] Fix Predis error handling| Q             | A| ------------- | ---| Branch?       | 7.2| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Issues        |Fix#59686| License       | MIT#59348 completely broke the Redis store when used with a service, eg:```yamlframework:  lock:    resources:      default: snc_redis.default```The assumption that `exceptions` is always `false` is only correct when a DSN is used.Commits-------b20892f [Lock] Fix Predis error handling
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@ro0NLro0NLro0NL approved these changes

@jderussejderusseAwaiting requested review from jderussejderusse is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
7.2
Development

Successfully merging this pull request may close these issues.

4 participants
@dciprian-petrisor@fabpot@ro0NL@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp