Skip to content

Fix ChannelProcessingFilter to skip decision if response already committed #17668

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

therepanic
Copy link
Contributor

In this commit, we quickly fix a bug in ChannelProcessingFilter#doFilter where if filterInvocation.getResponse().isCommitted() is checked before decide, it will not pass further into the filter, which is an error. Perhaps in the future it would be better to extend the ChannelDecisionManager interface directly, but it is deprecated and this would be difficult and beyond the scope of this commit.

Closes: gh-6721

…itted

In this commit, we quickly fix a bug in ChannelProcessingFilter#doFilter
where if filterInvocation.getResponse().isCommitted() is checked before
decide, it will not pass further into the filter, which is an error.
Perhaps in the future it would be better to extend the
ChannelDecisionManager interface directly, but it is deprecated and this
would be difficult and beyond the scope of this commit.

Closes: spring-projectsgh-6721

Signed-off-by: Andrey Litvitski <[email protected]>
@therepanic therepanic marked this pull request as ready for review August 7, 2025 12:53
@therepanic
Copy link
Contributor Author

I marked this commit as closing the issue, as I believe it fully resolves it. gh-6721 also mentioned that it might be worth changing the structure of the ChannelDecisionManager interface, but I think it would be better to open a separate issue for that.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ChannelProcessingFilter misuse of 'committed'
2 participants