GNOME Bugzilla – Bug 325860
gnome_vfs_async_xfer reports wrong GnomeVFSXferProgressInfo in the callback for http method
Last modified: 2006-01-05 15:23:30 UTC
With gnome-vfs 2.12, doing a gnome_vfs_async_xfer over http of multiple files I got this internally: Breakpoint 3, count_each_file_size_one ( rel_path=0x919d238 "/bugzilla.gnome.org/bugzilla-mostfreq.xml", info=0x91c05e0, recursing_will_loop=0, data=0xb7cf5010, recurse=0xb7cf5018) at gnome-vfs-xfer.c:706 706 if (call_progress_often (params->progress, params->progress->progress_info->phase) == 0) { (gdb) p *info $1 = {name = 0x91d9270 "bugzilla-mostfreq.xml", valid_fields = 9793, type = GNOME_VFS_FILE_TYPE_REGULAR, permissions = 0, flags = GNOME_VFS_FILE_FLAGS_NONE, device = 0, inode = 0, link_count = 0, uid = 0, gid = 0, size = 5899, block_count = 0, io_block_size = 0, atime = 1136466983, mtime = 1136466017, ctime = 0, symlink_name = 0x0, mime_type = 0x91d4d80 "text/xml", refcount = 1, reserved1 = 0x0, reserved2 = 0x0, reserved3 = 0x0, reserved4 = 0x0, reserved5 = 0x0} Where all the info is correct. However with gnome-vfs 2.13.4 I got this: Breakpoint 3, count_each_file_size_one ( rel_path=0x9f63b80 "/bugzilla.gnome.org/bugzilla-mostfreq.xml", info=0x9f9b678, recursing_will_loop=0, data=0xb7c2b010, recurse=0xb7c2b018) at gnome-vfs-xfer.c:706 706 if (call_progress_often (params->progress, params->progress->progress_info->phase) == 0) { (gdb) p *info $1 = {name = 0x9fabad0 "bugzilla-mostfreq.xml", valid_fields = GNOME_VFS_FILE_INFO_FIELDS_TYPE, type = GNOME_VFS_FILE_TYPE_REGULAR, permissions = 0, flags = GNOME_VFS_FILE_FLAGS_NONE, device = 0, inode = 0, link_count = 0, uid = 0, gid = 0, size = 0, block_count = 0, io_block_size = 0, atime = 0, mtime = 0, ctime = 0, symlink_name = 0x0, mime_type = 0x0, refcount = 1, reserved1 = 0x0, reserved2 = 0x0, reserved3 = 0x0, reserved4 = 0x0, reserved5 = 0x0} with every field set to zero. The impact of these is big, because the GnomeVFSXferProgressCallback progress_sync_callback function get zero values for the GnomeVFSXferProgressInfo *info. This impacts almost every download dialog in GNOME (async xfer updating a progress bar based on the xferinfo). I'd need to test this with non-http method to locate the problem.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 325861 ***