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

www-url-form-encoded parameters are not handed in Spring project #1051

Closed
guskim-nsuslab opened this issue May 27, 2021 · 1 comment
Closed
Labels

Comments

@guskim-nsuslab
Copy link

guskim-nsuslab commented May 27, 2021

Hi,

First, I'm really enjoying the logbook library and thank you for your effort.

I'm not sure the issue I experienced is a bug or intended behavior, and would like to say sorry if it's not a bug.

Description

I'm building a project using Spring Boot 2.4.1 with logbook-spring-boot-starter version: 2.4.1.

One of my controller methods is defined like below.

@RequestMapping(path = "/xxx/xxx", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
public ResponseObject method(final RequestObject req) 

When I sent requests to the API with x-www-url-form-encoded parameters, req parameter was always null before I changed logbook.filter.form-request-mode to parameter.

Expected Behavior

Request parameters need to be handed to target methods with the default option(body)

@whiskeysierra
Copy link
Collaborator

This is described in https://github.com/zalando/logbook#form-requests and the preceding paragraph, as well as numerous previous issues around this problem. See #94 and the referenced issues there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants