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

bugfix: undertow has missing request body #90

Merged
merged 5 commits into from
Mar 18, 2024
Merged

Conversation

pboos
Copy link
Contributor

@pboos pboos commented Mar 18, 2024

Problem

When using spring-boot-starter-undertow all POST requests that require a body fail with a violation that body is required but missing.

Solution

Somehow in undertow the InputStream is not finished but the cached content is already there. So we should read the cached content if there is any.

@pboos pboos requested a review from a team as a code owner March 18, 2024 15:25
@pboos pboos requested a review from catarina-correia March 18, 2024 15:25
Copy link

@omartchokhani omartchokhani left a comment

Choose a reason for hiding this comment

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

🍰

@pboos pboos merged commit 17295d8 into main Mar 18, 2024
2 checks passed
@pboos pboos deleted the bugfix/undertow-request-body branch March 18, 2024 19:09
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