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 524996 - Images are re-imported (as duplicates) if there are spaces in the filename
Images are re-imported (as duplicates) if there are spaces in the filename
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Import
0.4.x
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2008-03-29 17:11 UTC by Davo
Modified: 2008-03-29 18:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Davo 2008-03-29 17:11:54 UTC
Please describe the problem:
When you import photos from a folder (and deselect 'Copy Photos') a check is made to see if the photo already exists in the database (in which case it is not added).

However, the photo names in the database have spaces (and other characters) replaced by hex escape sequences (' ' => '%20'), so the check fails to find a match where there is a space in the file name.

Steps to reproduce:
1. Set up a folder with an image with a space in its filename
2. Import the folder into F-spot (with 'Copy photos' unticked)
3. Repeat step 2.


Actual results:
Photo will appear twice in the database (thumbnail appears twice on browse screen).

Expected results:
Photo should only appear once in the database.

Does this happen every time?
Yes.

Other information:
I have a working fix for this and will attach it as soon as I have done a diff of it.
Comment 1 Davo 2008-03-29 18:21:48 UTC
Having checked out the latest version from SVN, I find it is already fixed. I guess I'll just have to wait for 0.4.3.