Re: url-encoding for http addresses



Hi,

Am Freitag, den 10.12.2004, 22:46 -0500 schrieb Walter Landry:
> Alexander Larsson <alexl redhat com> wrote:
> > On Mon, 2004-12-06 at 20:38 -0500, Walter Landry wrote:
> > > Hello,
> > > 
> > > I just upgraded gnome-vfs2 on my Debian testing machine from 2.6.2 to
> > > 2.8.3, and it seems that the default interpretation of http uri's has
> > > changed.  In 2.6, gnome-vfs2 breaks if you don't url-encode any http
> > > uri's you give it.  In 2.8, it breaks if you do.
> > > 
> > > First of all, is this change documented anywhere?  Second, is there a
> > > simple way to check for versions so that I can write code that will
> > > work with both the old and new conventions?
> > 
> > Hmm. This sounds bad. You mean that passing in a string containing "%20"
> > breaks, but one with a space in doesn't? That seems wrong, the gnome-vfs
> > semantics should be that uris always have to be escaped.
> 
>   $ gnomevfs-ls http://superbeast.ucsd.edu/~landry/ArX/wlandry/arx/2/1/,cache/
>   arx.2.1,59.tar.gz               (Regular, application/x-tar)    size 784886mode 0000
>   $ gnomevfs-ls http://superbeast.ucsd.edu/~landry/ArX/wlandry/arx/2/1/%2Ccache/
>   Segmentation fault

eeek. ---^

> 
> As far as I can tell from 
> 
>   http://anoncvs.gnome.gr.jp/viewcvs.cgi/gnome-vfs/programs/gnomevfs-ls.c?rev=1.4&view=markup
> 
> gnomevfs-ls doesn't escape anything.


I start thinking aloud here..

http-method.c do_open is called by the vfs.
it calls make_request with "GET".
this calls build_request.
this calls gnome_vfs_uri_to_string with the uri.
this string is built into a HTTP/1.0 GET request string, and that is
sent. 

Where the heck is it segfaulting... turns out debugger doesnt like me
much today
---------------------------------------------------
Starting program: /usr/bin/gnomevfs-ls 
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0xe60: I/O error
---------------------------------------------------

Hm, actually I compiled gnome-vfs with --enable-debug=full and with
CFLAGS="-D DEBUG_HTTP_ENABLE" and it still doesnt show any http debug
messages (which are present in http-method.c)... hmpf...

either way I'll leave that as landmark and try again tomorrow... of
course someone whose PC isnt feeling evil today can help right now
too :)

cheers,
   Danny

-- 
www.keyserver.net key id A334AEA6

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]