-
Notifications
You must be signed in to change notification settings - Fork 264
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
Can not handle multipart/form-data #637
Comments
How did you configure logbook? |
You can reproduce it easily with attached project. I can see request logged by logbook
but i can not work with the uploaded file itself and got error above. Rest controller: https://github.com/radovans/logbook-problem/blob/master/src/main/java/com/test/demo/Controller.java |
Found the issue. I'm working on a fix. |
Hello is this issue resolved? i am having same issue and i am using the same logbook library version. pls let me know how to resolve the error. |
You say you're using the same version. Do you mean the latest? |
@whiskeysierra - I am facing same error as described by OP. |
That version is even older than the one this issue was originally opened for. |
The project I work is a maintenance application. Can you recommend the version that we shall use to get over this issue .. we are using spring boot v2.4.10 which we can’t upgrade further.. but logbook we can. pls suggest |
Hello, I have problem with logbook. When I create endpoint where I am able to upload the file everything works correctly. After adding logbook dependency I am not able to work with the uploaded file.
Steps to Reproduce
For better understanding I have created minimal example with bug: https://github.com/radovans/logbook-problem
when I call the endpoint with postman:
curl -X POST \ http://localhost:8888/upload/file \ -H 'Accept: */*' \ -H 'Accept-Encoding: gzip, deflate' \ -H 'Connection: keep-alive' \ -H 'Content-Length: 15001' \ -H 'Content-Type: multipart/form-data; boundary=--------------------------606195755734019197267982' \ -H 'Host: localhost:8888' \ -H 'User-Agent: PostmanRuntime/7.19.0' \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ -F file=@resume.pdf
I get error
{ "timestamp": "2019-11-13T14:23:42.887+0000", "status": 400, "error": "Bad Request", "message": "Required request part 'file' is not present", "path": "/upload/file" }
so I am not able to handle the file and store it for example. When i remove all logbook dependencies I have no problem with that.
The text was updated successfully, but these errors were encountered: