Bug 152777 - tags lost after file moved to another directory
Summary: tags lost after file moved to another directory
Status: RESOLVED DUPLICATE of bug 161403
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
: 202945 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-23 14:34 UTC by Robin Green
Modified: 2011-01-06 15:47 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Green 2007-11-23 14:34:58 UTC
Version:            (using KDE KDE 3.96.0)
Installed from:    Compiled From Sources
Compiler:          gcc 4.1.2 (Gentoo 4.1.2 p1.0.2) 
OS:                Linux

If a file is moved to a different directory, any tags it has are lost. However, if it is moved back again, the tags reappear.
Comment 1 Sebastian Trueg 2007-11-23 16:44:51 UTC
I implemented a service to take care of this. It currently lives in playground/base/nepomuk-kde/filewatch. I would be happy if you could test it for me.
It still has some issues:
- Only works on Linux
- Only works for files in the home folder
- Based on inotify and, thus, is restricted as inotify (i.e. ~ 8000 folders max, no nfs support, and so on)
Comment 2 Robin Green 2007-11-24 03:46:44 UTC
That would be just perfect for my needs, as I have root access so I can increase the 8192 watches limit in /proc. However, I tried it and it does not work for me. I first needed to comment out the test line in CMakeLists.txt to get it to build; then, when I ran it, it detected me moving a file called 1.jpeg from $HOME/newest to $HOME, but the metadata did not appear in dolphin. I moved it back again and the metadata reappeared. (I started dolphin *after* moving the file.)
Comment 3 Sebastian Trueg 2007-11-24 08:54:59 UTC
hm, does the service run? You can check that via
qdbus kded /kded org.kde.kded.loadedModules
It should contain nepomukfilewatch
Comment 4 Sebastian Trueg 2007-11-24 09:30:48 UTC
Ok, I found two stupid bugs in the thing: a double connect and a deadlock. Now it should work properly. Please test.
Comment 5 Robin Green 2007-11-24 13:35:46 UTC
No - same result. And I know the service is running - I started it myself, and I can see it noticing the file moves from the terminal messages.
Comment 6 Sebastian Trueg 2007-11-24 13:49:53 UTC
which svn revision is this?
Comment 7 Robin Green 2007-11-24 15:18:02 UTC
740971
Comment 8 Peter Penz 2008-04-24 08:11:11 UTC
@Sebastian: I'm trying to go through the hundreds of Dolphin bug-reports, I hope it's OK that I reassign this issue to you :-)
Comment 9 Sebastian Trueg 2008-04-24 08:59:28 UTC
Working on this one. For Linux there is a service that takes care of it, but 
since it is based on inotify we get problems on Win/MAC. In any case, my plan 
is to get the service into 4.2.
Comment 10 mutlu inek 2009-12-21 05:02:09 UTC
I just tested this on KDE SC 4.4 beta 2, using soprano and strigi from trunk.

Moving and renaming files using Dolphin now preserved both tags and ratings.

Tags and ratings, however, are not copied when I copy a file using Dolphin. Is this intentional?

Moreover, when I rename or move files using the command line, tags and ratings are lost. When I rename or move the file to the previous name/location, tags and ratings reappear as per comment #2
Comment 11 mutlu inek 2009-12-21 05:06:26 UTC
A small addition to my comment from a few minutes back: when a folder which contains rated and tagged files is moved, the tags and ratings are lost. When renaming or moving is undone, they reappear.
Comment 12 Christian Schafmeister 2010-02-15 13:23:15 UTC
I'm using KDE 4.4 and when I'm tagging a file and use the nepomuk search to find all files with this tag, everything seems to work perfectky. When I move this file to a different directory, the tag still gets displayed correctly but the nepomuk search for the tag doesn't find the file anymore.
Comment 13 mutlu inek 2010-06-07 22:44:45 UTC
I just tested this with KDE SC 4.4.82 (4.5 beta 2). The bug is fixed: moving files across directories keeps the file-tag association. The file shows up in subsequent searches.

IMO, this bug report can be closed. Thanks to all developers involved!
Comment 14 mutlu inek 2010-06-07 22:50:34 UTC
Actually, I was wrong.

When moving or renaming files (or the folders which contain them) using the command line (while KDE + nepomuk are running) will still destroy the association between file and tag.

So nothing changed. Sorry for the noise.
Comment 15 Sebastian Trueg 2010-06-08 11:48:30 UTC
mutlu: are you sure about that? even moving files on the command line should result on updated meta data like tags. At least on linux that should be the case.
Comment 16 Mikko Kuivaniemi 2010-08-01 19:47:58 UTC
At least for me, this doesn't work if I try to move a file to another partition. Tested with KDE SC 4.5 RC 3
Comment 17 Sebastian Trueg 2011-01-06 15:40:44 UTC

*** This bug has been marked as a duplicate of bug 161403 ***
Comment 18 Sebastian Trueg 2011-01-06 15:47:49 UTC
*** Bug 202945 has been marked as a duplicate of this bug. ***