diff options
author | Dario Mehlich <d.mehlich@gmail.com> | 2025-01-27 10:16:08 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-01-27 15:09:36 +0000 |
commit | 654034638e6ec8f1e71b9fa53d03dc5049bfa363 (patch) | |
tree | 7a54e9f7293b3f6493c637c6738ebbb906f8a7de /.devcontainer | |
parent | 458856b2f8ad79908a6bf22189aa186951b728c1 (diff) | |
download | nextcloud-server-backport/48581/stable30.tar.gz nextcloud-server-backport/48581/stable30.zip |
fix(preview): Filter for folders in cleanup old preview jobbackport/48581/stable30
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>
Diffstat (limited to '.devcontainer')
0 files changed, 0 insertions, 0 deletions