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 347717 - URI fragment identifier used in GNOMEVFS HTTP requests
URI fragment identifier used in GNOMEVFS HTTP requests
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Module: http
2.14.x
Other All
: Normal normal
: ---
Assigned To: Christian Kellner
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-16 22:06 UTC by Alexander “weej” Jones
Modified: 2006-08-25 07:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Patch against CVS HEAD (1.39 KB, patch)
2006-07-16 22:12 UTC, Alexander “weej” Jones
none Details | Review
Fix (786 bytes, patch)
2006-08-22 21:37 UTC, Alexander “weej” Jones
accepted-commit_now Details | Review

Description Alexander “weej” Jones 2006-07-16 22:06:43 UTC
Please describe the problem:
URI fragment identifiers are being used in HTTP requests. The "path" we pass to neon contains more than just the path.

This causes 404's when trying to retrieve files with fragments in their URIs via GNOMEVFS, as the request line looks something like this:

GET /#somefrag HTTP/1.1

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Alexander “weej” Jones 2006-07-16 22:12:57 UTC
Created attachment 69011 [details] [review]
Patch against CVS HEAD

In http_context_set_uri

Renamed "uri_string" symbol to "uri_path" as it is a much more accurate description of what the variable contains.

Added GNOME_VFS_URI_HIDE_FRAGMENT_IDENTIFIER to the "gnome_vfs_uri_to_string" call so that all parts except the path are correctly omitted.
Comment 2 Alexander “weej” Jones 2006-07-27 13:32:25 UTC
Is everything OK with this?

Should I patch against a different version?
Comment 3 Alexander “weej” Jones 2006-08-22 13:51:41 UTC
Just to clarify, when asking GNOME-VFS to retrieve a resource by URI of the form <http://authority/resource#fragment>, my patch actually returns data for <http://authority/resource> and with the assumption that it is the responsibility of the application to deal with resource fragment resolution.

This is what we want, right?
Comment 4 Alexander “weej” Jones 2006-08-22 21:37:05 UTC
Created attachment 71407 [details] [review]
Fix

Removed the change of terminology - I don't think it's worth worrying right now, as we have no distinction between URIs and URI references in GnomeVFS.URI anyway.
Comment 5 Christian Kellner 2006-08-23 05:55:38 UTC
Loosk good. SHOOT!
Comment 6 Alexander “weej” Jones 2006-08-23 12:52:22 UTC
I don't have a GNOME CVS account yet, so someone else will have to commit for me!

Thanks
Comment 7 Alexander Larsson 2006-08-25 07:23:06 UTC
Commited. Thanks.