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 582035 - status bar misleaded by @ sign in url
status bar misleaded by @ sign in url
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Interface
2.26.x
Other Linux
: Normal minor
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-10 06:34 UTC by Josselin Mouette
Modified: 2010-02-10 19:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Check if @ is before the first / to get the host (882 bytes, patch)
2010-02-10 17:06 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Use SoupURI to get host name in ephy-string (1.75 KB, patch)
2010-02-10 17:58 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review

Description Josselin Mouette 2009-05-10 06:34:23 UTC
[ Original bug: http://bugs.debian.org/523838 ]

Open the following url:
https://buildd.debian.org/pkg.cgi?maint=pkg-xfce-devel@lists.alioth.debian.org

Epiphany displays the following in the status bar: « Loading
"lists.alioth.debian.org" » instead of buildd.debian.org.

Maybe some side effects of the handling of url like
http://user:pass@host/path ?
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2010-02-10 17:06:47 UTC
Created attachment 153430 [details] [review]
Check if @ is before the first / to get the host

Otherwise urls with an '@' in it after the host will wrongly report whatever is
to the right of @ as the host. See the test case in the bug.

Bug #582035
Comment 2 Dan Winship 2010-02-10 17:27:43 UTC
it looks like the patch gets all the URI punctuation correct now, though it doesn't deal with %-encoded characters ("http://gn%6Fme.org/"), which are admittedly, uncommon in hostnames. still. use SoupURI! :)
Comment 3 Dan Winship 2010-02-10 17:29:27 UTC
(hm... and yet, the %6F is correctly decoded in the status message, suggesting that you're parsing the string to a URI at some point, and then converting it back to a string to pass somewhere else, to then pass to ephy_string_get_host_name...)
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2010-02-10 17:58:01 UTC
Created attachment 153446 [details] [review]
Use SoupURI to get host name in ephy-string

Bug #582035
--

Thanks for the tip Dan, this makes much more sense.
Comment 5 Xan Lopez 2010-02-10 19:00:22 UTC
Comment on attachment 153446 [details] [review]
Use SoupURI to get host name in ephy-string

Oh yes.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2010-02-10 19:21:47 UTC
Attachment 153446 [details] pushed as fbf7c11 - Use SoupURI to get host name in ephy-string

Thanks