nextcloud-server/tests/lib/Preview
Dario Mehlich b540da607e
fix(preview): Filter for folders in cleanup old preview job
Fixes #35936.
When running `OC\Preview\BackgroundCleanupJob`, the main iteration loop
in `run()` expects a folder, however, `getOldPreviewLocations()`
currently does not filter by mimetype and therefore can yield a
non-folder entry which causes an Exception when constructing the Folder
impl.
Filtering for `httpd/unix-directory`, as `getNewPreviewLocations()`
already does, fixes this issue.

Signed-off-by: Dario Mehlich <d.mehlich@gmail.com>
2025-04-01 11:05:14 +07:00
..
BackgroundCleanupJobTest.php fix(preview): Filter for folders in cleanup old preview job 2025-04-01 11:05:14 +07:00
BitmapTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +07:00
GeneratorTest.php fix!: Remove legacy event dispatching Symfony's GenericEvent 2023-07-27 09:57:51 +07:00
HEICTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +07:00
ImageTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +07:00
MP3Test.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +07:00
MovieTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +07:00
OfficeTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +07:00
Provider.php Refactor `OC\Server::getRootFolder` 2023-11-10 16:51:05 +07:00
SVGTest.php fix: Extend SVG reference check 2024-05-16 10:02:57 +07:00
TXTTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +07:00