Closed Bug 325585 Opened 19 years ago Closed 16 years ago

partial updates destroys firefox.exe, truncated file, when HD full

Categories

(Toolkit :: Application Update, defect)

1.8.0 Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 315278

People

(Reporter: dentharg, Unassigned)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

During updates when hard drive space runs out firefox.exe was truncated to 200KB and thus couldn't be started. The only solution was to reinstall.

There was no message stating the problem.

Reproducible: Always

Steps to Reproduce:
1. Start Firefox
2. Fill HDD with data so there is not enough place for updates
3. Run update
Summary: partial updates destroys firefox.exe, truncated file → partial updates destroys firefox.exe, truncated file, when HD full
Version: unspecified → 1.5.0.x Branch
This problem occurs in ff2 as well and will occur on USB flash drives. In my case firefox.exe is truncated down to 4000kb.

The solution to this problem is to have updater check the available drive space on the drive that the update is going to be installed too using current path. 

If the available drive space is less than the amount of space required to decompress the update(20 megabytes is a good arbitrary number but a lower number may be possible)I had 8 megabytes of available drive space and the update did not run without truncating the firefox.exe file down to 4000 kb. then a message box would be activated asking the user to make the necessary room on the drive. 

The message box should have two buttons available, continue and cancel. Once the user has made room on the drive the user could clicked the continue button and the update will install successfully.

Wrapping the regular update installation code within an if statement similar to the following should resolve this issue.

$drivespace = space in current path;
$drive = current path;
if($drivespace < '20000kb')
  {
   message = "20mb of space is necessary on the $drive drive in order to safely install the update. Please make enough space available before proceeding.";
  }else{
   regular installation code.
  }

Checking for space on c will not work as in my case I have firebox installed on my U3 enabled USB drive and run it from there.

Scott
Product: Firefox → Toolkit
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.