-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Support multipart uploads with @RestControllerEndpoint when the management server is running on a separate port #18286
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
Comments
Thanks for the sample. What's your usecase for an actuator endpoint that consumes a multipart upload? |
I have actuator end-points exposed on a different port so they're not published over the internet. I need to add a service end-point to the app which requires data file upload. This end-point is not to be exposed as well so I want to add it as an actuator end-point to unify with other end-points used by our monitoring/servicing functions. |
Thanks. So it's an actuator endpoint purely because that's an easy way to make it only accessible on a separate port to the main app. Correct? |
Yes, this is correct |
Declining for reasons listed in #31554 (comment) |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
i'm trying to implement custom
@RestControllerEndpoint
with a method that acceptsMultipartFile
as parameter. Everything works when actuator endpoints are in the same context as main application (port 8080.) After I set up dedicated context for actuator end-points withmanagement.server.port=9000
I've got this exception:It seems that multipart config is not configured for the actuator context in this case.
I was able to fix the problem by adding dependency to
commons-fileupload
and registeringCommonsMultipartResolver
bean. This seems to fix multi-part config for the actuator context. Still, I don't want to bringcommons-fileupload
dependency with the project.SpringBoot 2.1.8. Please see sample project attached. Look at README.md file in the project for curl commands to execute.
actuator-multi-part.tar.gz
Regards,
Sergei
The text was updated successfully, but these errors were encountered: