After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 634801 - Imports Duplicate again and again
Imports Duplicate again and again
Status: RESOLVED WONTFIX
Product: f-spot
Classification: Other
Component: Import
0.8.0
Other Linux
: Normal critical
: ---
Assigned To: F-spot maintainers
F-spot maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2010-11-14 06:34 UTC by sshorty
Modified: 2018-07-01 08:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description sshorty 2010-11-14 06:34:11 UTC
When I import pictures from a local disk F-Spot imports duplicate pictures again und again! I can that bug reproduce on every time.
I use F-Spot more than two or three years within 15000 (!) tagged pictures an that bug consists only in Versiuon 0.8. I can't use F-Spot since this bug has happend....
btw: a friend use F-Spot 0.8 to and he has the same problem!
Comment 1 Ruben Vermeersch 2010-11-14 15:58:14 UTC
Might be a silly question, but do you have duplicate detection enabled in the import dialog?
Comment 2 sshorty 2010-11-14 17:34:12 UTC
Yes of course.
It make no difference if the duplicate detection is enabled or not!
My first idea was, that the check-box is not observed wehin importing any files. Is that possible?
Comment 3 Matthias Schwarz 2011-01-16 18:14:11 UTC
I can confirm this "bug".
I did a little bit of debugging and it looks like my photos.db file is a little bit messed up:

All base_uri entries in the photos and photo_versions table of my photos.db file have a trailing "/". However, f-spot is looking for a base_uri without "/".
Furthermore, in my photos.db file, there may exist blanks (" ") in base_uri or filename, while f-spot seems to be replacing " " by "%20"

Example:
photos.db:
base_uri="/path/to my pictures/"
filename="my picture.jpg"

HasDuplicate() call in PhotoStore.cs:
base_uri="/path/to%20my%20pictures"
filename="my%20picture.jpg"

I can't remember, which version of f-spot or sqlite I used, when I imported my pictures. However, when I create a new catalog with my current installation (f-spot 0.8.2, sqlite 3.7.2), the duplicate detection works fine...

I wrote a dirty little scrip (that dirty, that I don't want to post it here right now) and fixed my entries. Duplicate detection works now again for me...
Comment 4 André Klapper 2018-07-01 08:53:38 UTC
f-spot is not under active development anymore, has not seen code changes for five years, and saw its last tarball release in the year 2010.
Its codebase has been archived: https://gitlab.gnome.org/Archive/f-spot/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.