Skip to content

Rework servlet 2 to not wrap HttpServletResponse objects#1387

Merged
devinsba merged 3 commits into
masterfrom
devinsba/dont-change-servletresponse-type
Apr 21, 2020
Merged

Rework servlet 2 to not wrap HttpServletResponse objects#1387
devinsba merged 3 commits into
masterfrom
devinsba/dont-change-servletresponse-type

Conversation

@devinsba
Copy link
Copy Markdown
Contributor

Some applications cast to their HttpServletResponse type without doing a type check for the wrapper type and unwrapping.

@devinsba devinsba requested a review from a team as a code owner April 20, 2020 17:50
@devinsba devinsba force-pushed the devinsba/dont-change-servletresponse-type branch 2 times, most recently from 9849dd7 to 88b9efe Compare April 20, 2020 18:29
@devinsba
Copy link
Copy Markdown
Contributor Author

This is the only failing due to the muzzle artifact resolution issue addressed in #1386

Copy link
Copy Markdown
Contributor

@tylerbenson tylerbenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reasonable change, but I'm not keen on storing the response status on the request when we can instead just use it directly.

@devinsba devinsba requested a review from tylerbenson April 20, 2020 22:33
@devinsba devinsba force-pushed the devinsba/dont-change-servletresponse-type branch from 03c3fc0 to aec2fad Compare April 21, 2020 13:59
Copy link
Copy Markdown
Contributor

@tylerbenson tylerbenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@devinsba devinsba merged commit f908859 into master Apr 21, 2020
@devinsba devinsba deleted the devinsba/dont-change-servletresponse-type branch April 21, 2020 18:39
@github-actions github-actions Bot added this to the 0.50.0 milestone Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants