]> git.koha-community.org Git - koha.git/commit
Bug 29156: File missing warning in Koha::UploadedFile for permanent files only
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 1 Oct 2021 23:06:57 +0000 (13:06 -1000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 21 Feb 2022 14:43:21 +0000 (14:43 +0000)
commitb823f6066d576b102a37c53c4d3d74db35d561a5
tree3be2a67b1f1a89e1e36ca472c14f3289dd91f30b
parent26cbc70d1981a1ee3d1c658a0b96fb504d65e177
Bug 29156: File missing warning in Koha::UploadedFile for permanent files only

When an uploaded file is deleted, when file does not exist there is a warning :
"Removing record for file.txt within category koha_upload, but file was missing."

For temporary files, this warning is noisy.
For example when they are in /tmp, system reboot deleted them.

I propose to remove this warning for temporary files.

Test plan :
1) Upload a temporary and a permanent file via Tools > Upload
2) Delete the file on server
3) Delete the two files from Tools > Upload
4) Look at warning in log files
=> You see only warning for permanent file

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 874ad0729e15cb264a9222fbc01464eefca9ee1c)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/UploadedFile.pm