MantisBT - Piwigo
View Issue Details
0000953Piwigosynchronizationpublic2009.03.19 19:242009.07.21 22:09
plg 
plg 
normalfeatureN/A
closedfixed 
2.0.0 
2.0.22.0.4 
any
Apache 1.3.x
0000953: avoid fatal error when deleting a photo that doesn't exist on filesystem
When a photo is added with web API method pwg.images.add (as pLoader does), the administrator can delete it from Piwigo adminitrastion photo batch management screen.

The problem is that if the webmaster has removed uploaded files by hand, the "logical" deletion fails because the file cannot be found.

We should not fail: if the file does not exist, a part of the job has already been done, it's not a problem.

I would even say that an additionnal maintenance task "remove photos that don't have files anymore" would be useful (and don't tell me it would like a synchronization, because it's a very very light synchronization)
No tags attached.
Issue History
2009.03.19 19:24plgNew Issue
2009.03.19 19:24plgStatusnew => assigned
2009.03.19 19:24plgAssigned To => plg
2009.03.19 19:24plgbrowser => any
2009.03.19 19:24plgWeb server => Apache 1.3.x
2009.07.21 22:07svnCheckin
2009.07.21 22:07svnNote Added: 0002708
2009.07.21 22:09svnCheckin
2009.07.21 22:09svnNote Added: 0002709
2009.07.21 22:09plgStatusassigned => closed
2009.07.21 22:09plgResolutionopen => fixed
2009.07.21 22:09plgFixed in Version => 2.0.4

Notes
(0002708)
svn   
2009.07.21 22:07   
[Subversion] r3656 by plg on branch 2.0

-----[Subversion commit log]----------------------------------------------------
feature 953: avoid fatal error when delete a photo (added with pwg.images.add
API) and the file doesn't not exist on the filesystem.
(0002709)
svn   
2009.07.21 22:09   
[Subversion] r3657 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r3656 from branch 2.0 to trunk

feature 953: avoid fatal error when delete a photo (added with pwg.images.add
API) and the file doesn't not exist on the filesystem.