You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I ran a Springboot Service with "logbook-spring-boot-starter",
an error occurred when a "x-www-form-urlencoded" type http request received. The reason is that some parameters from the request were not available. Although I have tried almost every version of "logbook-spring-boot-starter" and changed some environment settings, this problem could not be solved. So, I think there is probably a bug which caused this issue. I have attached the codes that can reproduce this bug. Please refer to Chapter "Steps to Reproduce" and try to reproduce it.
Expected Behavior
Parameters from http request should be available. The error mentioned in Description does not occur when component "logbook-spring-boot-starter" is not used.
Actual Behavior
Parameters from http request were not available. They were all null instead of their original values.
I tried the following configuration and it seems work.
logbook:
filter:
form-request-mode: off
I tried the recommended way to set form-request-mode. Only x-www-form-urlencoded data will not be recorded and other type of post action (such as application/json) will still be logged. So I think it may work currently.
Description
when I ran a Springboot Service with "logbook-spring-boot-starter",
an error occurred when a "x-www-form-urlencoded" type http request received. The reason is that some parameters from the request were not available. Although I have tried almost every version of "logbook-spring-boot-starter" and changed some environment settings, this problem could not be solved. So, I think there is probably a bug which caused this issue. I have attached the codes that can reproduce this bug. Please refer to Chapter "Steps to Reproduce" and try to reproduce it.
Expected Behavior
Parameters from http request should be available. The error mentioned in Description does not occur when component "logbook-spring-boot-starter" is not used.
Actual Behavior
Parameters from http request were not available. They were all null instead of their original values.
Possible Fix
Steps to Reproduce
Springboot controller code is as below:
Springboot application.yml code is as below:
Request curl command is as below:
Code "System.out.println" output contents are as below:
Context
Due to this bug, I had to use InputStream to parse those parameters from http request, which is very complicated.
Your Environment
The text was updated successfully, but these errors were encountered: