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 433829 - Imported images with # in name emit error message on terminal
Imported images with # in name emit error message on terminal
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Import
0.3.x
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 540504 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-04-27 10:14 UTC by Alexander Skwar
Modified: 2008-09-30 07:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0395) Fauna Solingen, #11.jpg (73.20 KB, image/jpeg)
2007-04-27 10:17 UTC, Alexander Skwar
  Details
quote % in file names (871 bytes, patch)
2008-09-29 15:26 UTC, Martin Pitt
none Details | Review

Description Alexander Skwar 2007-04-27 10:14:53 UTC
Please describe the problem:
I imported some images, which have a # (hash) in the filename. Those images are shown in f-spot application, but on the starting terminal, I get a lots of error messages during the import and when f-spot is started.

Steps to reproduce:
1. mkdir /home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna
2. Copy the file which I'm going to attach to this directory.
3. Name the file "0395) Fauna Solingen, #11.jpg" (without the quotes ")
4. Import this directory to f-spot


Actual results:
During import, and also when starting up f-spot again, I get on the controlling terminal:

open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0395) Fauna Solingen, %252311.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0395) Fauna Solingen, %252311.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 

In the directory, there is:

askwar@winnb000488 ~ $ ls -la "/home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/"
insgesamt 1040
drwxrwxrwx 1 askwar users   4096 26. Apr 15:06 .
drwxrwxrwx 1 askwar users   4096 26. Apr 15:48 ..
-rwxrwxrwx 1 askwar users  98455 22. Jul 2006  0383) Fauna Solingen, #01.jpg
-rwxrwxrwx 1 askwar users  81451 22. Jul 2006  0385) Bäume in Fauna Solingen, #02.jpg
-rwxrwxrwx 1 askwar users  98469 22. Jul 2006  0386) Fauna Solingen, #03.jpg
-rwxrwxrwx 1 askwar users 100832 22. Jul 2006  0387) Fauna Solingen, #04.jpg
-rwxrwxrwx 1 askwar users  95032 22. Jul 2006  0388) Fauna Solingen, #05.jpg
-rwxrwxrwx 1 askwar users  82098 22. Jul 2006  0389) Fauna Solingen, #06.jpg
-rwxrwxrwx 1 askwar users 101308 22. Jul 2006  0391) Fauna Solingen, #07.jpg
-rwxrwxrwx 1 askwar users  97700 22. Jul 2006  0392) Fauna Solingen, #08.jpg
-rwxrwxrwx 1 askwar users  91932 22. Jul 2006  0393) Fauna Solingen, #09.jpg
-rwxrwxrwx 1 askwar users  96293 22. Jul 2006  0394) Fauna Solingen, #10.jpg
-rwxrwxrwx 1 askwar users  74954 22. Jul 2006  0395) Fauna Solingen, #11.jpg
-rwxrwxrwx 1 askwar users   8918  6. Nov 2005  Album.jap


Expected results:
No error message should be shown.

Does this happen every time?
Yes, it does.

Other information:
I'm on a Gentoo Linux ~x86 system.

Complete error messages, after I started f-spot up:

askwar@winnb000488 ~ $ f-spot
Starting new FSpot server

(f-spot:28687): libglade-WARNING **: unknown attribute `comment' for <property>.
Reloading
item changed
open uri = file:///home/askwar/Desktop/My Pictures/Hintergrundbilder/tentacles.svg mit Cassandra.xcf.png
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0395) Fauna Solingen, %252311.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0395) Fauna Solingen, %252311.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0393) Fauna Solingen, %252309.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0393) Fauna Solingen, %252309.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Hintergrundbilder/GNOME-LinuxFriendly_1280x1024.png
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0394) Fauna Solingen, %252310.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0394) Fauna Solingen, %252310.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0392) Fauna Solingen, %252308.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0392) Fauna Solingen, %252308.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0391) Fauna Solingen, %252307.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0391) Fauna Solingen, %252307.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0389) Fauna Solingen, %252306.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0389) Fauna Solingen, %252306.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0388) Fauna Solingen, %252305.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0388) Fauna Solingen, %252305.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0387) Fauna Solingen, %252304.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0387) Fauna Solingen, %252304.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0385) Bäume in Fauna Solingen, %252302.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0385) Bäume in Fauna Solingen, %252302.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0383) Fauna Solingen, %252301.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0383) Fauna Solingen, %252301.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0386) Fauna Solingen, %252303.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0386) Fauna Solingen, %252303.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0393) Fauna Solingen, %252309.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0393) Fauna Solingen, %252309.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] 
open uri = file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0395) Fauna Solingen, %252311.jpg
System.IO.FileNotFoundException: Could not find uri "file:///home/askwar/Desktop/My Pictures/Photos/Kategorien/Ausflüge/Fauna/0395) Fauna Solingen, %252311.jpg".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.ImageFile.PixbufStream () [0x00000] 
  at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] 
  at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] 
  at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000]
Comment 1 Alexander Skwar 2007-04-27 10:17:03 UTC
Created attachment 87130 [details]
0395) Fauna Solingen, #11.jpg

This is an example image, which is listed in the error messages.
Comment 2 Stephane Delcroix 2007-07-17 13:00:07 UTC
This is solved in svn.

Anyway, messages at the Console are _not_ errors, just debug messages for developers. If they was real errors, f-spot would have crashed for each of them !
Comment 3 Maxxer 2008-06-30 20:48:24 UTC
*** Bug 540504 has been marked as a duplicate of this bug. ***
Comment 4 Martin Pitt 2008-09-29 14:57:09 UTC
Argh, I spent half an hour digging through svn where this got fixed, and in fact it isn't. I just tried 0.5.0.1, and it still happens:

$ (cd src; ./f-spot --uninstalled --debug --import /tmp/gphoto2-Medium\ auf\ usb%3A005\,014/)
[...]
[Debug 16:52:39.741] open uri = file:///tmp/gphoto2-Medium auf usb:005,014/store_00010001/DCIM/100CANON/IMG_0001.JPG
System.IO.FileNotFoundException: Could not find uri "file:///tmp/gphoto2-Medium auf usb:005,014/store_00010001/DCIM/100CANON/IMG_0001.JPG".
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x0001e] in /home/martin/ubuntu/tmp/f-spot-0.5.0.1/src/Imaging/ImageFile.cs:37 
  at FSpot.JpegFile.get_Header () [0x0000b] in /home/martin/ubuntu/tmp/f-spot-0.5.0.1/src/Imaging/JpegFile.cs:43 
  at FSpot.JpegFile.get_ExifHeader () [0x0000b] in /home/martin/ubuntu/tmp/f-spot-0.5.0.1/src/Imaging/JpegFile.cs:54 
  at FSpot.JpegFile.get_Date () [0x00000] in /home/martin/ubuntu/tmp/f-spot-0.5.0.1/src/Imaging/JpegFile.cs:318 
Error importing /tmp/gphoto2-Medium auf usb%3A005,014/store_00010001/DCIM/100CANON/IMG_0001.JPG


The pasted "Debug" message is from src/Imaging/ImageFile.cs, Open(): During import, the public ImageFile (Uri uri) constructor obviously gets an unquoted URI.
Comment 5 Martin Pitt 2008-09-29 14:58:39 UTC
For context, this kind of URL happens if you have f-spot import from a libgphoto gvfs path (which is now necessary since gvfs already locks the device after plug in), see https://launchpad.net/bugs/258083).
Comment 6 Martin Pitt 2008-09-29 15:25:23 UTC
Oh, seems that's just for "%" now, which just fell through the cracks. Attaching patch.

Comment 7 Martin Pitt 2008-09-29 15:26:01 UTC
Created attachment 119593 [details] [review]
quote % in file names
Comment 8 Maxxer 2008-09-29 15:54:46 UTC
if the problem is '%' please move your discussion to bug 483779
Comment 9 Martin Pitt 2008-09-30 07:14:56 UTC
OK, will do. Sorry, didn't find that bug yesterday. Closing again.