xwikisas / application-diagram

Create various types of diagrams using draw.io
GNU Lesser General Public License v2.1
0 stars 8 forks source link

Can't save a diagram with background image #283

Open ane-gabriela opened 2 months ago

ane-gabriela commented 2 months ago

Steps to reproduce:

  1. Edit a diagram
  2. Click on the Change button next to "Background" in the right Panel ChangeBackground
  3. Drag and drop an image
  4. Click on Apply
  5. Click on Save & View

Expected results: The diagram is saved.

Actual results: The diagram can't be saved

Environment: Windows 11, XWiki 15.10.10, Chrome 128, Diagram Application (Pro) version 1.21-rc-1

Inspect

In the wiki console:


2024-09-11 15:28:29.428:WARN :oejs.HttpChannel:qtp1413246829-33: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
2024-09-11 15:28:37.018:WARN :oejs.Request:qtp1413246829-1212 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000
2024-09-11 15:28:37.020:WARN :oejs.HttpChannel:qtp1413246829-1212: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
2024-09-11 15:28:40.244:WARN :oejs.Request:qtp1413246829-1214 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000
2024-09-11 15:28:40.245:WARN :oejs.HttpChannel:qtp1413246829-1214: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
2024-09-11 15:28:56.943:WARN :oejs.Request:qtp1413246829-914 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000
2024-09-11 15:28:56.943:WARN :oejs.HttpChannel:qtp1413246829-914: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
2024-09-11 15:34:09.442:WARN :oejs.Request:qtp1413246829-1351 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000
2024-09-11 15:34:09.443:WARN :oejs.HttpChannel:qtp1413246829-1351: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
2024-09-11 15:39:37.772:WARN :oejs.Request:qtp1413246829-1371 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000
2024-09-11 15:39:37.772:WARN :oejs.HttpChannel:qtp1413246829-1371: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
2024-09-11 15:43:01.115:WARN :oejs.Request:qtp1413246829-369 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000
2024-09-11 15:43:01.115:WARN :oejs.HttpChannel:qtp1413246829-369: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
2024-09-11 15:43:51.145:WARN :oejs.Request:qtp1413246829-1216 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000
2024-09-11 15:43:51.145:WARN :oejs.HttpChannel:qtp1413246829-1216: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
2024-09-11 15:45:28.536:WARN :oejs.Request:qtp1413246829-1371 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000
2024-09-11 15:45:28.536:WARN :oejs.HttpChannel:qtp1413246829-1371: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
2024-09-11 15:58:58.709:WARN :oejs.Request:qtp1413246829-1361 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000
2024-09-11 15:58:58.711:WARN :oejs.HttpChannel:qtp1413246829-1361: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content```
ane-gabriela commented 2 months ago

It appears that the issue reproduces also on XWiki 15.10.10 with Diagram Application (Pro) 1.20.6

Diagram 15 10 10

2024-09-11 16:21:41.240:WARN :oejs.Request:qtp1413246829-185 - http://localhost:8080/xwiki/bin/preview/Diagram/Diagram%201/WebHome: java.lang.IllegalStateException: Form is larger than max length 1000000 2024-09-11 16:21:41.241:WARN :oejs.HttpChannel:qtp1413246829-185: handleException /xwiki/bin/preview/Diagram/Diagram%201/WebHome org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content

ane-gabriela commented 2 months ago

Images used:

  1. T2HLBs
  2. 1
  3. butterflies-87452