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 322985 - Double slashes in http URL's are eroneously collapsed
Double slashes in http URL's are eroneously collapsed
Status: RESOLVED OBSOLETE
Product: gnome-vfs
Classification: Deprecated
Component: URI handling
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
: 342248 416352 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-12-02 02:42 UTC by ronald
Modified: 2010-12-13 04:15 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Removes the slash consilidation (453 bytes, patch)
2006-06-14 02:29 UTC, Scott Harmon
none Details | Review

Description ronald 2005-12-02 02:42:58 UTC
Enter a url in the location bar with a path that contains double slashes.
E.g.:

  http://some.domain/blah//foo

The request-uri actually being used will be '/blah/foo' instead of
'/blah//foo' . However, those two are distinct paths.

Probably the easiest way to simulate this on Apache is with a rewrite
rule:

    RewriteEngine On
    RewriteRule ^/blah//(.*)  /bar/$1
Comment 1 Alessandro Decina 2005-12-09 22:09:02 UTC
Also consider this case:

>>> gnomevfs.make_uri_canonical
("http://www.example.net/redirect.php?http://www.somewhere.example.org/")
'http://www.example.net/redirect.php?http:/www.somewhere.example.org/'

Comment 2 James "Doc" Livingston 2006-06-04 10:28:21 UTC
*** Bug 342248 has been marked as a duplicate of this bug. ***
Comment 3 Scott Harmon 2006-06-14 02:29:04 UTC
Created attachment 67311 [details] [review]
Removes the slash consilidation

So far this seems to be doing ok on my machine.  It also fixes this bug for me:
http://bugzilla.gnome.org/show_bug.cgi?id=342248

I really think it was a mistake to colapse slashes.
Comment 4 Scott Harmon 2006-07-30 02:39:58 UTC
Any word on this from the vfs maintainer?  I have been shipping a patched gnome-vfs with dropline gnome for over a month and haven't had/heard of any issues.  I think it would be nice to fix this for everyone else as well. (for example it affects podcasts in rhythmbox http://bugzilla.gnome.org/show_bug.cgi?id=342248)
Comment 5 Gilles Dartiguelongue 2007-01-21 20:19:34 UTC
I think this was introduced because it doesn't matter for unix paths. Maybe the slash consolidation could be avoided for no unixy urls ? Anyway, I hope the patch will be applied since it reduces gnome's cool effect when apps like rhythmbox fails because of a bug in the vfs.
Comment 6 Martin Szulecki 2007-02-01 19:57:40 UTC
After a debugging session I stumbled upon this issue in gnome-vfs in relation to podcast downloads failing as noted before.

The issue here seem to actually be two bugs:

1) Regular URI Path being changed/transformed
2) URL Parameters being malformed

As there seems to be a requirement for 1) somewhere (Windows URIs?) as the slash collapsing is implemented, I can at least think for a definite solution for case 2) and avoiding total removal of this.

In 2), libgnomevfs/gnome-vfs-uri.c:set_uri_element(), is the point where the URI gets malformed. Anything after "?" in a http request URI should not be modified.

There is a "FIXME" at that place aswell.

The correct solution might be to split the passed URI at "?" on the "http" method(s) and only apply _gnome_vfs_canonicalize_pathname() on the first token as this would preserve regular path's still being "corrected".

Another test URI where gnomevfs-info fails (but should not):
http://feeds.feedburner.com/~r/ChineseLearnOnline/~5/84356008/redirect.mp3
Comment 7 Jonathan Matthew 2007-03-11 22:36:43 UTC
*** Bug 416352 has been marked as a duplicate of this bug. ***
Comment 8 Martin Szulecki 2009-01-30 09:12:54 UTC
I can confirm "slashes getting wrong if set as url parameter" is fixed when using gvfs.

Bug could be closed?
Comment 9 Fabio Durán Verdugo 2010-12-13 04:15:55 UTC
closing...