Skip to content

Fix MVC DELETE request body handling - #1527

Closed
dhionson2 wants to merge 1 commit into
spring-cloud:mainfrom
dhionson2:codex/fix-mvc-delete-request-body
Closed

dhionson2 wants to merge 1 commit into
spring-cloud:mainfrom
dhionson2:codex/fix-mvc-delete-request-body

Conversation

@dhionson2

Copy link
Copy Markdown
Contributor

Summary

The MVC DELETE handler accepted a request body but invoked the consumer with the path argument instead. A DELETE request to the function root with a body therefore delivered an empty payload.

Use the request body when present and preserve the path argument for requests without a body. Add an integration regression test covering the body case.

Validation

  • Regression test failed before the fix: received an empty string instead of the request body.
  • .\mvnw.cmd -pl spring-cloud-function-web "-Dtest=HttpDeleteIntegrationTests" -DfailIfNoTests=false test — passed (6 tests).
  • .\mvnw.cmd -pl spring-cloud-function-web test — passed (222 tests, 0 failures, 0 errors, 25 skipped).
  • .\mvnw.cmd -q -DskipTests -pl spring-cloud-function-web verify — passed.
  • git diff --check — passed.

Signed-off-by: Dhionson Plaster Moreira <89803431+dhionson2@users.noreply.github.com>
@dhionson2
dhionson2 force-pushed the codex/fix-mvc-delete-request-body branch from d6c147b to 4e2d8ea Compare November 21, 2026 16:27
@dhionson2 dhionson2 closed this Nov 21, 2026
@dhionson2

Copy link
Copy Markdown
Contributor Author

Superseded by #1528.

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.

1 participant