github gotenberg/gotenberg v9.9.2
9.9.2

one hour ago

Bug Fixes

  • The Markdown routes no longer execute index.html as a template. Gotenberg reads the page and replaces each {{ toHTML "<file>" }} with its Markdown, so a page can no longer loop or recurse until it exhausts the CPU or the memory, past --api-timeout. The page holds text and toHTML actions only, each Markdown file named once: anything else, or a file named twice, answers 400 with its position. Thanks @mccahan.
  • Page selections, form fields and archive filenames stay within what the request holds. A page selection lists each page once, however many times it names it, and an invalid range fails before any page is expanded, split ranges included. Split writes its parts one at a time and stops at the deadline. /forms/pdf/form and repeated filenames no longer cost time that grows with the square of their input, and archive extraction stops at the deadline. Thanks @mccahan.
  • Chromium has no DevTools port anymore. Gotenberg drives it over --remote-debugging-pipe, so a page can neither list other conversions nor close their tabs. Thanks @mccahan.
  • Web workers no longer read file:// URLs. With --chromium-allow-file-access-from-files, a dedicated, nested, shared or service worker could read files outside its request. Workers now start locked out of file:// URLs, while the page keeps the files of its own request. Thanks @mccahan.
  • A handler that outlives its hard timeout can no longer write into another request's response. Thanks @mccahan.

Chore

  • Updated litho to v0.0.18.
  • Added canary routes to the integration tests, which prove that a filtered request never leaves (#1740). Thanks @mccahan.

Don't miss a new gotenberg release

NewReleases is sending notifications on new releases.