nextcloud/lib/private/Preview
Scott Dutton b12a390220
Always try and show pre rendered preview
Currently if the following situation happens

Server generates preview
Server has command removed which allows a preview to be shown
Client asks for preview, gets a 404 error when preview exists
(Mime checked before preview)

This happens more often with documents, or video as the commands are not
native PHP, they require a binary on the server.

After the fix the following would happen

Server generates preview
Server has command removed which allows a preview to be shown
Client asks for preview, gets preview which has been generated
(Mime checked after preview)

This would also allow offline generation (for example a docker image
containing the extra binaries), allowing a reduction in attack surface
of the instance serving the preview data.

Signed-off-by: Scott Dutton <scott@exussum.co.uk>
2020-08-13 22:50:38 +02:00
..
Storage Merge pull request #22139 from nextcloud/fix/noid/check-for-preview-multibucket-fallback-as-second-step 2020-08-07 16:02:02 +02:00
BMP.php Update license headers 2019-12-05 15:38:45 +01:00
BackgroundCleanupJob.php Move to subfolders for preview files 2020-04-19 10:30:56 +02:00
Bitmap.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Bundled.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Font.php Update license headers 2019-12-05 15:38:45 +01:00
GIF.php Update license headers 2019-12-05 15:38:45 +01:00
Generator.php Always try and show pre rendered preview 2020-08-13 22:50:38 +02:00
GeneratorHelper.php Update the license headers for Nextcloud 19 2020-03-31 14:52:54 +02:00
HEIC.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Illustrator.php Update license headers 2019-12-05 15:38:45 +01:00
Image.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
JPEG.php Update license headers 2019-12-05 15:38:45 +01:00
Krita.php Update license headers for 19 2020-04-29 11:57:22 +02:00
MP3.php Update license headers for 19 2020-04-29 11:57:22 +02:00
MSOffice2003.php Update license headers 2019-12-05 15:38:45 +01:00
MSOffice2007.php Update license headers 2019-12-05 15:38:45 +01:00
MSOfficeDoc.php Update license headers 2019-12-05 15:38:45 +01:00
MarkDown.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Movie.php Fix license headers 2020-01-13 14:23:49 +01:00
Office.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
OpenDocument.php Update license headers for 19 2020-04-29 11:57:22 +02:00
PDF.php Update license headers 2019-12-05 15:38:45 +01:00
PNG.php Update license headers 2019-12-05 15:38:45 +01:00
Photoshop.php Update license headers 2019-12-05 15:38:45 +01:00
Postscript.php Update license headers 2019-12-05 15:38:45 +01:00
Provider.php Update license headers 2019-12-05 15:38:45 +01:00
ProviderV1Adapter.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
ProviderV2.php Update license headers 2019-12-05 15:38:45 +01:00
SVG.php Update license headers 2019-12-05 15:38:45 +01:00
StarOffice.php Update license headers 2019-12-05 15:38:45 +01:00
TIFF.php Update license headers 2019-12-05 15:38:45 +01:00
TXT.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Watcher.php Update license headers 2019-12-05 15:38:45 +01:00
WatcherConnector.php Update license headers 2019-12-05 15:38:45 +01:00
XBitmap.php Update license headers 2019-12-05 15:38:45 +01:00