Re: Cong VFS
"Nickolay V. Shmyrev" <[email protected]>
| Newsgroups | gmane.editors.conglomerate.devel |
|---|---|
| Message-ID | <[email protected]> |
В Срд, 20/10/2004 в 12:37 -0400, David Malcolm пишет: > On Wed, 2004-10-20 at 11:06 +0100, Jeff Martin wrote: > > I've been fiddling again trying to get conglomerate to work with webdav. > > Excellent - that would be very cool. > > > In theory this should just work but, it don't. > > > > In cong-vfs.c there's a couple of lines which convert relative uri to to > > absolute by adding file:// to the front. This however knackers things > > starting http://. So I took these lines out. Relative uri still work > > fine so I'm not quite sure why these lines where there (may be an old > > bug work around?) > > I think it was a bugfix for running Conglomerate from the command line, > specifying a file to open. So perhaps this code is in the wrong place, > and should be in the command-line arg parsing routine? > This is just a garbage from previous implementations, it should be removed. Command line now parsed by gnome_vfs_make_uri_from_shell_arg, all stuff is implemented in gnome-vfs. I think, even more cleanup is needed in that part. For example, there is need to cleanup also some documentation and function interfaces (see patch attached). But those patch doesn't not complete this work. > > > > The problem I have now is gnome_vfs_read returning zero bytes read in > > cong_vfs_read_bytes. I've run a packet sniff and the document is begin > > returned fine from the web server, but never makes it out of > > gnome_vfs_read. > > > > Can anyone shed some light on things? > Probably we want to use gnome_vfs_read_entire_file() > Not sure on this one. gnome_vfs_read is allowed to return less than the > number of bytes requested, in which case we're meant to loop (similar to > fread IIRC) - assuming there's no error. > > It might be worth ensuring you have debug info for your gnome-vfs and > stepping inside the call. > > IIRC there are some known issues with Conglomerate/gnome vfs > interaction; can't rememeber the bugzilla IDs offhand. > > > > > > _______________________________________________ > Conglomerate-devel mailing list > [email protected] > http://lists.copyleft.no/mailman/listinfo/conglomerate-devel >