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 313971 - run dialog url encodes the domain name
run dialog url encodes the domain name
Status: RESOLVED DUPLICATE of bug 530752
Product: libgnome
Classification: Deprecated
Component: general
unspecified
Other All
: Low minor
: ---
Assigned To: libgnome maintainer
libgnome maintainer
: 501455 (view as bug list)
Depends on: 116046
Blocks:
 
 
Reported: 2005-08-19 17:28 UTC by Benjamin Berg
Modified: 2008-09-10 16:40 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Benjamin Berg 2005-08-19 17:28:55 UTC
Please describe the problem:
If I enter a url in the run dialog like http://www.dasörtliche.de and press run,
my galeon tries to open http://www.das%C3%B6rtliche.de which doesn't work.

Steps to reproduce:
1. Enter a URL with special characters in the domain name.
2. press run



Actual results:
The URL in the browser is broken.

Expected results:


Does this happen every time?


Other information:
This bug probably depends on bug 116046.
Comment 1 Vincent Untz 2005-09-16 15:01:58 UTC
In fact, it's really bug 116046. There's nothing we can do on our side, AFAIK.
I'm marking the bug as duplicate.

*** This bug has been marked as a duplicate of 116046 ***
Comment 2 Vincent Untz 2005-09-16 17:24:05 UTC
Stupid me. This is not the same bug.
But it's a gnome-vfs bug anyway :-)

<chpe> vuntz: problem in gnome-vfs-uri then, it's not idn-safe. I do recall some
bug about that...
Comment 3 Vincent Untz 2005-09-16 18:41:52 UTC
It's probably gnome_vfs_make_uri_from_input() that doesn't handle this.
Comment 4 Olivier Le Thanh Duong 2005-10-29 21:51:11 UTC
Bug is still present, confirming.
Comment 5 Christian Neumair 2006-01-06 17:36:35 UTC
Making it depend on the IDN support bug 116046.
Comment 6 Christian Persch 2006-01-06 18:13:18 UTC
From what I remember when looked into this, it doesn't depend on the IDN bug. The problem is in gnome-vfs in gnome_vfs_make_uri_from_input() which mangles the UTF-8 in the hostname. We don't require to recode the hostname to punycode when we can just pass the UTF-8 up to the handler (epiphany handles it just fine).
Comment 7 Christian Neumair 2006-01-06 20:19:46 UTC
Looks like we're calling gnome_vfs_escape_high_chars in gnome_vfs_make_uri_from_input_internal for URIs.

chpe: Isn't that the usual escaping people expect from URIs?
Would you expect that GnomeVFS converts umlauts to vocal sequences ("ö"=>"oe")?
Comment 8 Christian Persch 2006-04-07 22:06:12 UTC
No, I'd expect it to either pass the UTF-8 hostname through (my preferred option, and easiest to do here), or encode it in punycode (IDN, bug 116046), but not under any circumstances to %-encode it, since that's not legal afaict.
Comment 9 Christian Persch 2007-12-05 19:09:47 UTC
-> libgnome, where gnome-open lives now.
Comment 10 Christian Persch 2007-12-05 19:10:03 UTC
*** Bug 501455 has been marked as a duplicate of this bug. ***
Comment 11 Kjartan Maraas 2008-09-08 17:00:52 UTC
Does that mean just removing the call to gnome_vfs_make_uri_from_input_with_dirs() or replacing it with g_locale_to_utf8 or something like that?
Comment 12 Kjartan Maraas 2008-09-08 17:26:49 UTC
I think maybe porting gnome-open to us gtk_show_uri and moving it to libgnomeui could be a solution? Or just retire it in favour of xdg-open?
Comment 13 Christian Persch 2008-09-08 17:31:37 UTC
This works as expected using gvfs-open instead of gnome-open, so perhaps just close as dup of bug 530752 ?
Comment 14 Kjartan Maraas 2008-09-10 16:40:35 UTC
It works with gnome-open too now that it was ported to GIO. I still agree that gnome-open -> gvfs-open makes sense.

*** This bug has been marked as a duplicate of 530752 ***