Skip to content

Changing to MessageDecodingFailedException so that invalid messages are rejected #30756

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

Conversation

weaverryan
Copy link
Member

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #30649
License MIT
Doc PR not needed for bug fix

Bug fix if a message body is completely blank. I'm fixing this on master only, because in 4.2 and earlier, there is actually no system in place to fail serialization and cause the messages to be rejected. In 4.3, we just need to throw this exception.

Cheers!

@stof
Copy link
Member

stof commented Mar 28, 2019

no updates to tests ? This makes me think some tests are missing (or that the patch is incomplete)

@nicolas-grekas nicolas-grekas added this to the next milestone Mar 31, 2019
@weaverryan weaverryan force-pushed the decode-failed-exception-empty-body branch from 708f652 to a4d398e Compare March 31, 2019 15:54
@weaverryan weaverryan force-pushed the decode-failed-exception-empty-body branch from a4d398e to 4be827d Compare March 31, 2019 15:54
@weaverryan
Copy link
Member Author

Tests added! This should be ready :)

@fabpot
Copy link
Member

fabpot commented Mar 31, 2019

Thank you @weaverryan.

@fabpot fabpot merged commit 4be827d into symfony:master Mar 31, 2019
fabpot added a commit that referenced this pull request Mar 31, 2019
… messages are rejected (weaverryan)

This PR was merged into the 4.3-dev branch.

Discussion
----------

Changing to MessageDecodingFailedException so that invalid messages are rejected

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  |  no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #30649
| License       | MIT
| Doc PR        | not needed for bug fix

Bug fix if a message body is completely blank. I'm fixing this on master only, because in 4.2 and earlier, there is actually no system in place to fail serialization and cause the messages to be rejected. In 4.3, we just need to throw this exception.

Cheers!

Commits
-------

4be827d Changing to MessageDecodingFailedException so that invalid messages are rejected
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
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.

6 participants