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

Multipart File size config properties #1822

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anki2189
Copy link
Member

@anki2189 anki2189 commented Aug 12, 2020

Pull Request Description

This pull request closes #1819

Acceptance Test

  • Building the code with mvn clean install -Dintegration.tests still works.
  • Running mvn spring-boot:run in the strongbox-web-core still starts up the application correctly.
  • Building the code and running the strongbox-distribution from a zip or tar.gz still works.
  • The tests in the strongbox-web-integration-tests still run properly.

Questions

  • Does this pull request break backward compatibility?

    • Yes
    • No
  • Does this pull request require other pull requests to be merged first?

    • Yes, please see #...
    • No
  • Does this require an update of the documentation?

    • Yes, please see strongbox/strongbox-docs#{PR_NUMBER}
    • No

@anki2189 anki2189 mentioned this pull request Aug 12, 2020
7 tasks
@@ -6,6 +6,8 @@ spring:
servlet:
multipart:
enabled: true
max-file-size: 1MB
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 1 MB?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default value is 1 MB , so in order to have default behaviour kept this as 1MB.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check, if this property can be disabled, if you set it to 0, or -1, or does it need an actual value?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 will be treated as unlimited.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick question - can we use a proxy value for this? Maybe ${strongbox.max-file-size} and ${strongbox.max-request-size} which are actually configured in strongbox.yaml? :)

I think this value can overwritten if you export an env var SPRING_SERVLET_MAX_FILE_SIZE || SPRING_SERVLET_MAX_REQUEST_SIZE.

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

Successfully merging this pull request may close these issues.

Maximum upload size exceeded
3 participants