strongbox: Maximum upload size exceeded
Original Bug Description
For a work project I had to set up a strongbox repository with which I would look for sources via chocolatey. So I have to configure this one with the right URL for the push etc. But when wanted to push my package with my nupkg file I got this error message in my strongbox log file. I am therefore looking to be able to increase my maximum upload size exceeded Can you help me please ?
Feature Request
It should be possible to define:
- The maximum allowed size of uploaded artifacts globally, (for all repositories)
- Disable the maximum allowed size of uploaded artifacts globally, (for all repositories)
- The maximum allowed size of uploaded artifacts for a repository (this should override the global setting, if enabled.
- Disable the maximum allowed size of uploaded artifacts for a repository
Tasks
- Check if Spring allows you to disable the
spring.http.multipart.max-file-size
property.- Yes, if set to
-1
, this check will be disabled. (Thanks to @anki2189 for checking and confirming!).
- Yes, if set to
- Implement support for this in the
org.carlspring.strongbox.controllers.configuration.ServerConfigurationController
. - Implement support for this in the
org.carlspring.strongbox.controllers.configuration.StoragesConfigurationController
. - Implement support for this in the
org.carlspring.strongbox.controllers.BaseArtifactController
(and/or wherever necessary in the controllers that inherit this class). - Make the necessary change to the respective classes in the
strongbox-web-forms
. - Add support for this in the UI (via the
strongbox-web-ui
project). - Add new tests to the
strongbox-web-integration-tests
project that cover the generation and upload of large artifacts.
Help
- Our chat
- Points of contact:
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 57 (31 by maintainers)
Commits related to this issue
- Merge branch 'master' of https://github.com/strongbox/strongbox into issue-#1819 — committed to JanBucko/strongbox by JanBucko 4 years ago
- Merge branch 'master' into issue-#1819 — committed to JanBucko/strongbox by JanBucko 4 years ago
@JanBucko can you please ping me in the chat? This might be because of a build issue under windows (if you are running Windows). You can try if this fixes it for you https://github.com/strongbox/strongbox-web-ui/pull/40. If not - ping me in the chat.
Thank you very much 😃
@navkumar258 ,
Thanks for offering to help, but, as you can see, @anki2189 is already working on it. Please, feel free to join our chat channel to find out how you help with other tasks.
Hello back, I just want to push with this ( choco push --source “%REPO_URL%” --force ) and the full output in client is (Failed to process request. ‘Server Error’. The remote server returned an error: (500) Internal server error.)
And output in client is
18:08:38.910 05-08-2020 | ERROR | qtp1352693779-32 | o.c.strongbox.controllers.DefaultExceptionHandler | Request [ServletWebRequest: uri=/storages/storage-test/repository/;client=172.1.2.166;user=admin] failed. org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: Multipart Mime part package exceeds max filesize