Skip to content

[Bug]: Unconfigured Gotenberg causes 30s+ delay when loading PDF assets #18945

@Navino16

Description

@Navino16

Pimcore version

12.x

Steps to reproduce

  1. Install Pimcore 12.x (fresh or upgraded)
  2. Do NOT configure/run Gotenberg service
  3. Upload a PDF to Assets or browse the asset tree containing PDF files
  4. Observe the asset tree taking 30+ seconds to load

Actual Behavior

When Gotenberg is not configured/running, loading PDF assets in the admin UI causes severe performance degradation due to repeated 10-second timeouts.

Each call to \Pimcore\Helper\GotenbergHelper::isAvailable() takes 10 seconds (cURL default connection timeout) when Gotenberg is unreachable.

When loading a PDF asset, Document::getDefaultAdapter() is called multiple times:

  • ElementService::getThumbnailUrl()
  • Asset\Document::getImageThumbnail()
  • Asset\Document::processPageCount()

This results in 30+ seconds delay per PDF, and the issue compounds with multiple PDFs (60s, 90s, etc.).

Expected Behavior

  • If Gotenberg is truly optional, the system should gracefully handle the unavailability without significant delays
  • OR the documentation should clearly state that Gotenberg configuration is required

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions