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 305129 - error when loading tvtime-output-13:17:10.png from command line
error when loading tvtime-output-13:17:10.png from command line
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: general
2.12.x
Other All
: Normal minor
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-05-22 20:42 UTC by pie oh pah
Modified: 2006-08-10 02:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
possible fix (workaround?) (577 bytes, patch)
2006-08-03 14:22 UTC, Felix Riemann
none Details | Review

Description pie oh pah 2005-05-22 20:42:19 UTC
Please describe the problem:
when loading tvtime-output-13:17:10.png, or any filename with similar formatting
causes eog to display a dialog with "File not found."

renaming the file to something without colons fixes it.
opening the file with file->open works fine also.


Steps to reproduce:
1. $ eog tvtime-output-13\:17\:10.png -or-
2. $ eog "tvtime-output-13:17:10.png"
3. 


Actual results:
a dialog with "File not found." occurs with eog closing after hitting ok.

Expected results:
i expected it to load the file as normal.

Does this happen every time?
yes.

Other information:
i haven't tried opening files with colons in any other gnome software.
i also haven't tried any other funny characters.
Comment 1 Lucas Rocha 2005-10-14 17:44:20 UTC
I can reproduce this with EOG 2.12.1. Updating version.
Comment 2 Holger Bauer 2006-03-31 06:37:38 UTC
I tested this with the latest cvs version and the bug seems to be gone.
Comment 3 Lucas Rocha 2006-03-31 23:23:18 UTC
Yes, right. Probably something fixed on gnome-vfs. Closing as obsolete. Feel free to reopen if you continue to have this problem.
Comment 4 Lucas Rocha 2006-03-31 23:31:32 UTC
Oops, made a mistake. The bug is still there... Reopening...
Comment 5 Felix Riemann 2006-08-03 13:34:13 UTC
Well, the behaviour is quite strange in current CVS:

When I open the file without specifiying a path to the file (open it from the current directory) EOG segfaults:

$ eog tvtime-output-13\:16\:10.png

libgnomevfs-CRITICAL **: gnome_vfs_uri_to_string: assertion `uri != NULL' failed
aborting...

I'll see if I can get a trace of it.


When I add a path ('./' is sufficient) it loads fine:

$ eog ./tvtime-output-13\:16\:10.png 
JPEG is sRGB
Comment 6 Felix Riemann 2006-08-03 14:22:21 UTC
Created attachment 70138 [details] [review]
possible fix (workaround?)

The cause of the problem seems to have been gnome_vfs_make_uri_from_shell_arg() in make_canonical_uri(). It returned the input string instead of a valid uri string. This let gnome_vfs_uri_new() fail (and return NULL).

This patch replaces it with gnome_vfs_make_uri_from_input_with_dirs () which seems to fix it.

The problem with gnome_vfs_make_uri_from_shell_arg() should possibly still be opened as a gnome-vfs bug.
Comment 7 Lucas Rocha 2006-08-10 02:44:48 UTC
Commited in gnome-2-14, eog-ng, and HEAD branches. Thanks!

2006-08-10  Lucas Rocha  <lucasr@gnome.org>

        * shell/main.c (make_canonical_uri): fix error when loading images
        with ':' in their filenames from command line (Fixes bug #305129).
        Patch from Felix Riemann <felix@hsgheli.de>.