Bug 100491 - Konqueror progress bar always at 100% when downloading from a http site
Summary: Konqueror progress bar always at 100% when downloading from a http site
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: http (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 101465 101971 103577 104662 105811 108732 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-28 22:33 UTC by Magnus Larsson
Modified: 2005-07-08 13:04 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Larsson 2005-02-28 22:33:16 UTC
Version:           3.4.0 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.4.2
OS:                Linux (i686) release 2.6.10

The Konqueror progress bar always at 100% when downloading from a http site.

Testcase
1) start konqueror.
2) Goto http://www.kernel.org/pub/linux/kernel/v2.6/
3) Click on a file. 
4) The download starts. The progress bar indicates 100% progress
immediately and stays there throughout the download.

Counter example, ftp:
1) start konqueror.
2) Goto ftp://ftp.kernel.org/pub/linux/kernel/v2.6
3) Click on a file. 
4) The download starts. The progress bar is continuously updated from 0% when starting to 100% towards the end.

I got this after compiling and installing kde-3.4-rc1 from source. 
I have not seen this when using kde-3.3.2.

Sincerely,

Magnus Larsson
Comment 1 Magnus Larsson 2005-03-01 22:49:00 UTC
Hello again,

This worked using kde-3.4-beta2, compiled from sources.

uname -a
Linux lfs 2.6.10 #1 Sat Jan 15 08:40:36 CET 2005 i686 athlon i386 GNU/Linux

Best regards,

Magnus Larsson
Comment 2 Waldo Bastian 2005-03-06 17:57:42 UTC
CVS commit by waba: 

Fix progress bar.
BUG: 100491


  M +4 -2      job.cpp   1.432


--- kdelibs/kio/kio/job.cpp  #1.431:1.432
@@ -1566,4 +1566,5 @@ void FileCopyJob::setSourceSize( off_t s
 {
     d->m_sourceSize = size;
+    if (size != (off_t) -1)
     m_totalSize = size;
 }
@@ -1572,4 +1573,5 @@ void FileCopyJob::setSourceSize64( KIO::
 {
     d->m_sourceSize = size;
+    if (size != (KIO::filesize_t) -1)
     m_totalSize = size;
 }


Comment 3 Thiago Macieira 2005-03-14 12:36:07 UTC
*** Bug 101465 has been marked as a duplicate of this bug. ***
Comment 4 Magnus Larsson 2005-03-19 10:29:20 UTC
Hello Waldo Bastian,

I got this bug again after compiling and installing kde-3.4.0 from source. 
Your fix did not go into the KDE-3.4.0 release.

Best regards,

Magnus Larsson
Comment 5 Waldo Bastian 2005-03-19 17:19:07 UTC
It will be in 3.4.1 then :-)
Comment 6 Maksim Orlovich 2005-03-20 16:53:55 UTC
*** Bug 101971 has been marked as a duplicate of this bug. ***
Comment 7 Thiago Macieira 2005-04-10 01:44:38 UTC
*** Bug 103577 has been marked as a duplicate of this bug. ***
Comment 8 Maksim Orlovich 2005-04-27 17:33:14 UTC
*** Bug 104662 has been marked as a duplicate of this bug. ***
Comment 9 Maksim Orlovich 2005-05-17 13:57:23 UTC
*** Bug 105811 has been marked as a duplicate of this bug. ***
Comment 10 Thiago Macieira 2005-07-08 13:04:43 UTC
*** Bug 108732 has been marked as a duplicate of this bug. ***