Skip to content
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

Regression Writable in Filter #9287

Merged
merged 2 commits into from
May 22, 2023
Merged

Regression Writable in Filter #9287

merged 2 commits into from
May 22, 2023

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented May 21, 2023

Adds a test which reproduces the way the Micronaut Views Filter writes a writable as the body in the response within a filter.

Adds a test which reproduces the way the Micronaut Views Filter writes a writable as the body in the response within a filter.
@sdelamo sdelamo added type: bug Something isn't working type: regression A breaking change was introduced in a minor or patch release labels May 21, 2023
@sdelamo sdelamo added this to the 4.0.0-M5 milestone May 21, 2023
@sdelamo
Copy link
Contributor Author

sdelamo commented May 21, 2023

This test passes in Micronaut Framework 3 but it fails currently in 4. @yawkat @graemerocher can you help with this?

This is currently breaks the views module.

@yawkat
Copy link
Member

yawkat commented May 22, 2023

this one is caused because the type of the response is not statically known (controller has different body type than filter). handler matching is invariant so it cant find the proper handler.

i will fix it by making WritableBodyWriter a raw message handler, which has covariant matching, but it's ugly

@yawkat yawkat requested a review from graemerocher May 22, 2023 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working type: regression A breaking change was introduced in a minor or patch release
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants