Bug 443646 - digiKam does not delete duplicate picture over NFS share
Summary: digiKam does not delete duplicate picture over NFS share
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Trash (other bugs)
Version First Reported In: 7.3.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-12 21:30 UTC by dennis.bayrock
Modified: 2021-10-17 12:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.4.0
Sentry Crash Report:


Attachments
1-Digikam just started.png (1.18 MB, image/png)
2021-10-13 17:24 UTC, dennis.bayrock
Details
2-Opened up top duplicate with Dolphin via Digikam.png (1.13 MB, image/png)
2021-10-13 17:24 UTC, dennis.bayrock
Details
3-Right Click and Moving image to Trash.png (1.13 MB, image/png)
2021-10-13 17:24 UTC, dennis.bayrock
Details
NFS mount.txt (326 bytes, text/plain)
2021-10-13 17:24 UTC, dennis.bayrock
Details
4-Picture still shown in Digikam and Dolphin (Dolphin refreshed).png (1.13 MB, image/png)
2021-10-13 17:24 UTC, dennis.bayrock
Details
Digikam Log.txt (45.67 KB, text/plain)
2021-10-13 17:24 UTC, dennis.bayrock
Details
signature.asc (488 bytes, application/pgp-signature)
2021-10-13 17:29 UTC, dennis.bayrock
Details
signature.asc (488 bytes, application/pgp-signature)
2021-10-13 18:44 UTC, dennis.bayrock
Details
attachment-15604-0.html (3.12 KB, text/html)
2021-10-13 18:48 UTC, dennis.bayrock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dennis.bayrock 2021-10-12 21:30:03 UTC
SUMMARY

Digikam will not delete duplicate item on NFS mount (permissions confirmed OK) when item is deleted



STEPS TO REPRODUCE
1. Update Picture fingerprints
2. Find duplicates 
3. Click on one item in Ref. Images box
4. Right click on duplicate picture and select open in File Manager
5. (In Digikam) right click on duplicate picture and select move to trash

OBSERVED RESULT

Picture physically remains at location (In File Manager). Refreshing location does not change problem.


EXPECTED RESULT

Picture should be removed to .dtrash.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-10-13 06:04:13 UTC
Does it work if you don't open the duplicate image in the file manager beforehand? Which file manager do you use?
What we definitely need is a log from the terminal when you carry out the deletion process, as described here:

https://www.digikam.org/contribute/

Maik
Comment 2 dennis.bayrock 2021-10-13 17:24:54 UTC
Created attachment 142400 [details]
1-Digikam just started.png

On Wednesday, October 13, 2021 1:04:13 AM CDT you wrote:
> https://bugs.kde.org/show_bug.cgi?id=443646
> 
> Maik Qualmann <metzpinguin@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> CC|                            |metzpinguin@gmail.com
> 
> --- Comment #1 from Maik Qualmann <metzpinguin@gmail.com> ---
> Does it work if you don't open the duplicate image in the file manager
> beforehand? Which file manager do you use?
> What we definitely need is a log from the terminal when you carry out the
> deletion process, as described here:
> 
> https://www.digikam.org/contribute/
> 
> Maik


Maik,


Sry, my bad - turned signing off :>

Very happy to help out! Cool about setting Debug on command line - did not 
know about it.


I have included the log as well as some Spectacle screenshots of the problem. 
All processes are run as user dbayrock. Picture remains at it's location after 
the delete within Digikam. In the Dolphin window, I have tried to manually 
rename/delete/etc any of the items and I can do so so it does not seem to be a 
permissions problem for dbayrock.


I also looked in the .dtrash folder listed in the debug. Nothing there.


For completeness, I have included the mount point parameters. I can navigate 
to the mount manually and can make all changes/deletions/additions I like.


I have also tried the above without opening the Pic in Dolphin from Digikam. 
Same problem.


Please don't post the screenshots on the bugsite :>>>


Thanks!
Comment 3 dennis.bayrock 2021-10-13 17:24:54 UTC
Created attachment 142401 [details]
2-Opened up top duplicate with Dolphin via Digikam.png
Comment 4 dennis.bayrock 2021-10-13 17:24:54 UTC
Created attachment 142402 [details]
3-Right Click and Moving image to Trash.png
Comment 5 dennis.bayrock 2021-10-13 17:24:54 UTC
Created attachment 142403 [details]
NFS mount.txt
Comment 6 dennis.bayrock 2021-10-13 17:24:54 UTC
Created attachment 142404 [details]
4-Picture still shown in Digikam and Dolphin (Dolphin refreshed).png
Comment 7 dennis.bayrock 2021-10-13 17:24:54 UTC
Created attachment 142405 [details]
Digikam Log.txt
Comment 8 dennis.bayrock 2021-10-13 17:29:18 UTC
Created attachment 142407 [details]
signature.asc

On Tuesday, October 12, 2021 8:45:38 PM CDT you wrote:
> https://bugs.kde.org/show_bug.cgi?id=443646
> 
> caulier.gilles@gmail.com changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> Summary|Digikam does not delete     |digiKam does not delete
>                    |duplicate picure over NFS   |duplicate picture over NFS
>                    |share                       |share
> 
>                  CC|                            |caulier.gilles@gmail.com

All,

K. New to reporting bugs. No worries about the screenshots on the bugzilla :>>
Comment 9 dennis.bayrock 2021-10-13 17:40:53 UTC
On Wednesday, October 13, 2021 12:29:08 PM CDT you wrote:
> On Tuesday, October 12, 2021 8:45:38 PM CDT you wrote:
> > https://bugs.kde.org/show_bug.cgi?id=443646
> > 
> > caulier.gilles@gmail.com changed:
> >            What    |Removed                     |Added
> > 
> > --------------------------------------------------------------------------
> > -- Summary|Digikam does not delete     |digiKam does not delete
> > 
> >                    |duplicate picure over NFS   |duplicate picture over
> >                    |NFS
> >                    |share                       |share
> >                  
> >                  CC|                            |caulier.gilles@gmail.com
> 

All,

I have also tried changing all the permissions on the directories and items to 
777 and permissions to dbayrock:wheel. Tried Digikam again and still have the 
same problem.
Comment 10 Maik Qualmann 2021-10-13 17:48:09 UTC
Please delete the .dtrash folder, it will be created again. It often happened that this folder had a wrong permission.

Maik
Comment 11 dennis.bayrock 2021-10-13 18:44:45 UTC
Created attachment 142413 [details]
signature.asc

On Wednesday, October 13, 2021 12:48:09 PM CDT you wrote:
> https://bugs.kde.org/show_bug.cgi?id=443646
> 
> --- Comment #10 from Maik Qualmann <metzpinguin@gmail.com> ---
> Please delete the .dtrash folder, it will be created again. It often
> happened that this folder had a wrong permission.
> 
> Maik

Maik,

Deleted the .dtrash folder and re-ran Digikam.

It worked! The pics are now gone from Digikam and Dolphin! :>>

Not sure where you saw that the permissions were wrong in the log file. Have I 
missed something?

Also, I change the permissions often in my photo directories. This is probably 
how the permissions got changed for .dtrash. 

Is there a way to specify another directory location for .dtrash - i.e. 
outside my photo directory? I looked in the Digikam Settings and could not find 
a setting for .dtrash.

Much thanks for this! :>> x 20
Comment 12 dennis.bayrock 2021-10-13 18:48:14 UTC
Created attachment 142414 [details]
attachment-15604-0.html

On Wednesday, October 13, 2021 12:48:09 PM CDT you wrote:
> https://bugs.kde.org/show_bug.cgi?id=443646
> 
> --- Comment #10 from Maik Qualmann <metzpinguin@gmail.com> ---
> Please delete the .dtrash folder, it will be created again. It often
> happened that this folder had a wrong permission.
> 
> Maik


Maik,
Deleted the .dtrash folder and re-ran Digikam. 

It worked! The pics are now gone from Digikam and Dolphin! :>> 
Not sure where you saw that the permissions were wrong in the log file. Have I 
missed something? 

Also, I change the permissions often in my photo directories. This is probably how the 
permissions got changed for .dtrash.  

Is there a way to specify another directory location for .dtrash - i.e. 
outside my photo directory? I looked in the Digikam Settings and could not find
a setting for .dtrash. 

Much thanks for this! :>> x 20
Comment 13 Maik Qualmann 2021-10-17 12:05:46 UTC
We have often had the wish to enable a trash outside of the collection. However, this is not a good idea for a number of reasons. With network drives this would be very time consuming, as the images are first copied over the network and then deleted if they are not on the same drive.

Maik