Skip to content

[Messenger] Do not throw 'no handlers' exception when skipping handlers due to duplicate handling #48120

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
Nov 8, 2022

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Nov 5, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR n/a

I'm not sure if this change is expected or not, but I found this [while investigating another bug](https://github.com/wouterj/sf-reproducer/tree/messenger-star-routing in the Messenger component. When you handle the same message twice, you'll get an NoHandlerForMessageException because all handlers are skipped.

What would be the expected behavior? Maybe we have to throw a different exception when the same envelope is handled twice?

@chalasr
Copy link
Member

chalasr commented Nov 8, 2022

Thank you @wouterj.

@chalasr chalasr merged commit 1fd4b63 into symfony:4.4 Nov 8, 2022
@wouterj wouterj deleted the messenger-duplicate-no-handler branch November 8, 2022 17:38
@fabpot fabpot mentioned this pull request Nov 19, 2022
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