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 325860 - gnome_vfs_async_xfer reports wrong GnomeVFSXferProgressInfo in the callback for http method
gnome_vfs_async_xfer reports wrong GnomeVFSXferProgressInfo in the callback f...
Status: RESOLVED DUPLICATE of bug 325861
Product: gnome-vfs
Classification: Deprecated
Component: Module: http
2.13.x
Other Linux
: Normal critical
: ---
Assigned To: Christian Kellner
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-05 13:48 UTC by Fernando Herrera
Modified: 2006-01-05 15:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fernando Herrera 2006-01-05 13:48:03 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.
Comment 1 Sebastien Bacher 2006-01-05 15:23:30 UTC
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 ***