flowable / flowable-engine

A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
https://www.flowable.org
Apache License 2.0
8.01k stars 2.63k forks source link

Entity too large #2984

Closed cholarajaa closed 3 years ago

cholarajaa commented 3 years ago

Describe the bug

API: {URL}/modeler-app/rest/models/{id}/editor/json

when I am trying to save a large model which has a request size of 1.1MB(json_xml), I am getting entity too large response. Nginx is configured to take 20MB of request payload.

Expected behavior

It should save the data.

Additional context Flowable version: 6.6.0 Database: Postgres 9.6

filiphr commented 3 years ago

Can you please share your model so we can try it out?

Have you tried increasing the request size on the Spring Boot application?

cholarajaa commented 3 years ago

tryied to set below config in flowable-default.properties server.max-http-header-size=5MB did not work!

I have added a test model, renamed extension as .txt to upload here. gati_interest_reopen.txt

cholarajaa commented 3 years ago

Also updated the tomcat properties, no luck

server.tomcat.max-swallow-size=5MB server.tomcat.max-http-form-post-size=5MB

cholarajaa commented 3 years ago

This was an issue with ingress controller on kubernetes. I updated the proxy-body-size to 5MB.

This resolved the issue.