Problem
Both AssetController::getDocumentPreviewPdf() and ElementService::getThumbnailUrl() gate document previews on $asset->getPageCount().
getPageCount() reads the pageCount custom setting, which is written by the asset-update-tasks queue. It is null until that queue has processed the asset — and permanently whenever page-count extraction failed or the setting was never written.
In that state the preview and the thumbnail URL are both suppressed even though the document converts perfectly well.
Expected
Let the conversion decide. getDocumentPreviewPdf() already catches a failed conversion and returns null, and the document-thumbnail route handles an unconvertible asset itself.
Affected version
2.3
Problem
Both
AssetController::getDocumentPreviewPdf()andElementService::getThumbnailUrl()gate document previews on$asset->getPageCount().getPageCount()reads thepageCountcustom setting, which is written by the asset-update-tasks queue. It isnulluntil that queue has processed the asset — and permanently whenever page-count extraction failed or the setting was never written.In that state the preview and the thumbnail URL are both suppressed even though the document converts perfectly well.
Expected
Let the conversion decide.
getDocumentPreviewPdf()already catches a failed conversion and returnsnull, and the document-thumbnail route handles an unconvertible asset itself.Affected version
2.3