Deletion does not check if pdf preview file actually exists

Created on 26 January 2023, almost 2 years ago
Updated 20 March 2023, over 1 year ago

Problem/Motivation

Maybe I'm missing something, but pdfpreview tries to delete a pdfpreview for _any_ file that is being deleted, even images, resulting in a ton of logs like this:

[notice] The file public://pdfpreview/1754-2c09c944-e290-11e3-a6a0-66e041ce382a.jpg.png was not deleted because it does not exist.

Steps to reproduce

Proposed resolution

Check if the file exists before calling delete.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024