nextcloud-server/tests/lib/Preview
Dario Mehlich 8c309130cf
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-01-27 10:16:08 +07:00
..
BackgroundCleanupJobTest.php fix(preview): Filter for folders in cleanup old preview job 2025-01-27 10:16:08 +07:00
BitmapTest.php chore: Add SPDX header 2024-05-13 17:41:36 +07:00
GeneratorTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +07:00
HEICTest.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +07:00
ImageTest.php chore: Add SPDX header 2024-05-13 17:41:36 +07:00
MP3Test.php chore: Add SPDX header 2024-05-13 17:41:36 +07:00
MovieTest.php chore: Add SPDX header 2024-05-13 17:41:36 +07:00
OfficeTest.php chore: Add SPDX header 2024-05-13 17:41:36 +07:00
Provider.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +07:00
SVGTest.php fix: Extend SVG reference check 2024-05-16 10:01:33 +07:00
TXTTest.php chore: Add SPDX header 2024-05-13 17:41:36 +07:00