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

Can't save a diagram with background image #283

Open
ane-gabriela opened this issue Sep 11, 2024 · 2 comments
Open

Can't save a diagram with background image #283

ane-gabriela opened this issue Sep 11, 2024 · 2 comments

Comments

@ane-gabriela
Copy link

ane-gabriela commented Sep 11, 2024

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
Copy link
Author

ane-gabriela commented Sep 11, 2024

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
Copy link
Author

ane-gabriela commented Sep 11, 2024

Images used:

  1. T2HLBs
  2. 1
  3. butterflies-87452

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

No branches or pull requests

2 participants