plantuml / plantuml-server

PlantUML Online Server
https://plantuml.com/
GNU General Public License v3.0
1.59k stars 463 forks source link

Bad Message 414 : reason URI Too Long (Large files) #324

Open SJrX opened 6 months ago

SJrX commented 6 months ago

Describe the bug This is a duplicate bug, but for some reason none of the existing bugs show up with this error so I wanted to make it searchable, with the solution.

To Reproduce Create a large plantuml diagram with a URL longer than 8 KB.

Expected behavior It should render.

Actual Behaviour Bad Message 414 reason: URI Too Long

Workaround At least for the Jetty version, you can supply the following environment variable to the container.

Additional context Add any other context about the problem here.

SJrX commented 6 months ago

Workaround for #87 #25 https://github.com/plantuml/plantuml-stdlib/issues/79

grivo commented 2 months ago

@SJrX - couldn't you provide an example of docker start shell command, i still can not pass this options to dockerized server

thanks!

grivo commented 2 months ago

just an update for workaround from above

it's much better to use JAVA_TOOL_OPTIONS in case of docker's jetty read only version since nor JAVA_OPTIONS neither _JAVA_OPTIONS works, yet JAVA_TOOL_OPTIONS works fine

so i have ended up with sort of requestHeaderSize set to 64k

docker run -d -p 127.0.0.1:8090:8080 -e JAVA_TOOL_OPTIONS=-Djetty.httpConfig.requestHeaderSize=65536 plantuml/plantuml-server:jetty

VladimirAlexiev commented 1 month ago

@SJrX please Close this

SJrX commented 1 month ago

@VladimirAlexiev can you explain why you want this closed. If you are a maintainer can you close it with a rationale. It seemed to have helped at least two people.