-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Bug]: Unconfigured Gotenberg causes 30s+ delay when loading PDF assets #18945
Copy link
Copy link
Closed
Description
Pimcore version
12.x
Steps to reproduce
- Install Pimcore 12.x (fresh or upgraded)
- Do NOT configure/run Gotenberg service
- Upload a PDF to Assets or browse the asset tree containing PDF files
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.