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 352118 - does not handle non-unique filenames on CD export
does not handle non-unique filenames on CD export
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
0.1.11
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-20 11:06 UTC by Han-Wen Nienhuys
Modified: 2006-09-01 15:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a patch that fix this bug (2.47 KB, patch)
2006-08-21 13:49 UTC, Stephane Delcroix
committed Details | Review

Description Han-Wen Nienhuys 2006-08-20 11:06:55 UTC
Please describe the problem:
I have a camera that generates files like HASH-PREFIX/dscCOUNT.jpg . I can import this with f-spot from USB disk. The result is that I many different photos named dsc0001.jpg. 

When I create a CD containing all of these different dsc0001.jpgs, all of these overwrite each other, and I end up with too few photos on the CD.

Please add -DISAMBIGUATION-COUNT suffix to the file names when encountering duplicate names.



Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Bengt Thuree 2006-08-20 11:29:34 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


Thanks for another specific sample. I will add this information to the other bug report #348091

*** This bug has been marked as a duplicate of 348091 ***
Comment 2 Stephane Delcroix 2006-08-21 13:49:43 UTC
Created attachment 71308 [details] [review]
a patch that fix this bug

This patch ensure file uniqueness when exporting to CD.

I needed to write a new UniqueName method working on Gnome.Vfs.Uri's, so we can't see this as a dup of bug #348091 anymore...

Bengt, what do you think ?
Comment 3 Bengt Thuree 2006-08-21 21:38:19 UTC
The patch looks good to me.

Ok, I'll agree and re-open this bug then.

Still think that in an abstract way this should be handled in the same way (possible with some unique coding though) for all export methods.
Comment 4 Larry Ewing 2006-08-31 23:00:53 UTC
yeah we need to fix this in general but I'll put this in for now
Comment 5 Stephane Delcroix 2006-09-01 07:30:24 UTC
I'm sorry Larry, you committed the changes to Changelog, but not in CDExport.cs
Comment 6 Stephane Delcroix 2006-09-01 15:51:41 UTC
now it is !