| Summary: | downloading file with unknown(?) size results in 100% progress bar | ||
|---|---|---|---|
| Product: | [Unmaintained] kio | Reporter: | tim |
| Component: | general | Assignee: | David Faure <faure> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | faure, jhaar |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
tim
2001-04-16 16:54:18 UTC
*** Bug 28846 has been marked as a duplicate of this bug. *** This was resolved a long time ago (KDE 3.0). I guess this report fell through the cracks and noone got around to updating it. Anyways, thanks for the report just the same... Sorry wrong report :( Confirmed with HEAD. Even more confusing is that the title also displays 100% while the copy/download goes on. Very easy to reproduce with kio_http and a (big) download which doesn't have a Content-Length header . Still the case in KDE-3.5.5. The download dialog shows 100% and "X MB of X MB complete." Yes we should fix this for kde4, since it's confusing. The amazon url doesn't work anymore (not surprising, 6 years later :) Does someone have another url for a big download without Content-Length header? #!/usr/bin/perl
package LookMomNoContentLength;
use strict;
use warnings;
use base qw(Net::Server);
sub process_request {
my $self = shift;
while (<STDIN>) {
s/\r?\n$//;
last if /^$/;
}
print "200 foo HTTP/1.1\r\n";
print "Content-Type: application/octet-stream\r\n";
print "\r\n";
while (my $x = 1) {
print $x++;
sleep 1;
}
}
__PACKAGE__->run(port => 8080);
__END__
SVN commit 736745 by dfaure: Better handling of the case where the total size of a job is unknown (very old kde bug). Instead of showing 100% all the time, and a fake total size, simply don't show a total size at all, nor a remaining time; and the percent isn't emitted so the progressbar stays at 0 (maybe a jumping-back-and-forth progress bar would be better though). BUG: 24228 M +5 -13 kdecore/jobs/kjob.cpp M +2 -0 kdeui/jobs/kstatusbarjobtracker.cpp M +3 -3 kdeui/jobs/kstatusbarjobtracker_p.h M +30 -24 kdeui/jobs/kwidgetjobtracker.cpp M +6 -4 kdeui/jobs/kwidgetjobtracker_p.h M +7 -11 kio/kio/job.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=736745 SVN commit 736752 by dfaure: now with jumping progress bar when no total is known CCBUG: 24228 M +4 -0 kwidgetjobtracker.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=736752 |