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

Make the max URI length configurable on Vert.x (using configuration) #555

Closed
mariotoffia opened this issue Jan 19, 2021 · 6 comments
Closed
Labels
👶 good first issue Good for newcomers 🍩 enhancement New feature or request ☕ java Related to Java code

Comments

@mariotoffia
Copy link

Hi and thanks for this great piece of software! :)

I'm using excalidraw via asciidoc-kroki (from @Mogztter) - It seems that if the file gets to big or too many objects in the drawing it will fail to render the svg image. Attached both JSON files respective images of failing and the one working.

This works:
image

This (from excalidraw.com) do not work:
image

json-files.zip

Cheers,
Mario :)

@ggrossetie
Copy link
Member

ggrossetie commented Jan 19, 2021

I'm using excalidraw via asciidoc-kroki (from @Mogztter) - It seems that if the file gets to big or too many objects in the drawing it will fail to render the svg image. Attached both JSON files respective images of failing and the one working.

The public instance of Kroki returns a "414 Request-URI Too Large" when the URI exceeds 4K bytes.
It ensures that the public instance will run smoothly.
Please note that you can configure a higher value if you are self-hosting Kroki.

In this case, the Asciidoctor Kroki extension should use a POST request but I think the limit should be 4000 and not 4096.

https://github.com/Mogztter/asciidoctor-kroki/blob/35f75e232a5671fe4e404a9b6e4516e011b5919e/src/kroki-client.js#L26

I will transfer this issue since it's not related to Kroki (or at least Kroki is working as expected).

@ggrossetie
Copy link
Member

I will transfer this issue since it's not related to Kroki (or at least Kroki is working as expected).

Actually I cannot transfer an issue from another organization 😞
Could you please open a new issue at: https://github.com/mogztter/asciidoctor-kroki?

@mariotoffia
Copy link
Author

Thanks @Mogztter - I'll create a new issue at asciidoctor-kroki!

@ggrossetie ggrossetie changed the title Too many object in excalidraw will not render a svg image Make the max URI length configurable on Vert.x (using configuration) Jan 26, 2021
@ggrossetie ggrossetie reopened this Jan 26, 2021
@ggrossetie
Copy link
Member

Currently, this value is not configurable. For reference, we could update the value using https://vertx.io/docs/apidocs/io/vertx/core/http/HttpServerOptions.html#setMaxInitialLineLength-int-.

It would allow to increase the default value (4096) on self-hosted instance.

@lind
Copy link
Contributor

lind commented Mar 6, 2021

A proposal for this issue in #626

@ggrossetie
Copy link
Member

fixed in 7c0664e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👶 good first issue Good for newcomers 🍩 enhancement New feature or request ☕ java Related to Java code
Projects
None yet
Development

No branches or pull requests

3 participants