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

I can't deploy a large BPMN file #325

Open
saig0 opened this issue Jun 21, 2024 · 0 comments
Open

I can't deploy a large BPMN file #325

saig0 opened this issue Jun 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@saig0
Copy link
Collaborator

saig0 commented Jun 21, 2024

Describe the bug
I can deploy a large BPMN file with a size > 1MB. The deployment fails with the following message:

Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededException: The field resources exceeds its maximum permitted size of 1048576 bytes.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy a BPMN file with a size > 1MB
  2. See error

Expected behavior
I can deploy a BPMN file with a size > 2MB.

Zeebe has a max limit of 4MB but with all records is may be effectively just 2MB.

Screenshots

Screenshot from 2024-06-21 10-59-42

Environment (please complete the following information):

  • Zeebe-Play Version: 1.10.1
  • Configuration: [e.g. default, remote Zeebe, persistent database]

Additional context

The issue can be fixed by setting the following configuration:

Environment variables:

SPRING_SERVLET_MULTIPART_MAXFILESIZE=4MB
SPRING_SERVLET_MULTIPART_MAXREQUESTSIZE=4MB

Or, in application.yml:

spring:
  servlet:
    multipart:
      max-file-size: 4MB
      max-request-size: 4MB
@saig0 saig0 added the bug Something isn't working label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant