File op: fileGetSize does not return error for non-existant file

VERIFIED INVALID

Status

P3
normal
VERIFIED INVALID
19 years ago
3 years ago

People

(Reporter: jimmykenlee, Assigned: ssu0262)

Tracking

Trunk
All
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
Build: 10/11/99 SeaMonkey build

1. From http://jimbob/trigger2.html, trigger
   http://jimbob/jars/f_fileop_filegetsize_zero

startInstall("Functional : f_fileop_filegetsize_zero",
"f_fileop_filegetsize_zero", "1.1.1.1", 0);
f = getFolder("Program");
addFile("fileop_filegetsize_zero", "2.2.2.2", jarSrc, f, jarSrc);
fileSource = f + "zero1.tmp";
fileSource2 = f + "nonexisting.txt";
theSize = fileGetSize(fileSource);
theSize2 = fileGetSize(fileSource2);
logComment("Path to known file = " + fileSource);
logComment("Path to nonexisting file = " + fileSource2);
logComment("fileGetSize should return 0 bytes = " + theSize);
logComment("fileGetSize returns for nonexisting file = " + theSize2);

RESULT:
A value of zero is returned for checking the file size on a non-existant file.
The Install.log shows the following:

---------------------------------------------------------------------------
http://jimbob/jars/f_fileop_filegetsize_zero.xpi     --     10/11/1999 13:56:04
---------------------------------------------------------------------------

     Functional : f_fileop_filegetsize_zero
     --------------------------------------

     ** Path to known file = C:\Program Files\moz106\x86rel\zero1.tmp
     ** Path to nonexisting file = C:\Program
Files\moz106\x86rel\nonexisting.txt
     ** fileGetSize should return 0 bytes = 0
     ** fileGetSize returns for nonexisting file = 0
     Item [1/1]	Installing: C:\Program Files\moz106\x86rel\zero1.tmp

     Install completed successfully
     Finished Installation  10/11/1999 13:56:05

EXPECTED RESULT:
An error message -214 (FILE_DOES_NOT_EXIST)

Updated

19 years ago
Assignee: cathleen → ssu
(Assignee)

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID
(Assignee)

Comment 1

19 years ago
I talked to Dan.  He said that this is as designed.  The user can use the
install.fileExists() function to see if the file exists or not.

Marking this as Invalid.
(Reporter)

Updated

19 years ago
Status: RESOLVED → VERIFIED
(Reporter)

Comment 2

19 years ago
This seems reasonable.  Marking Verified!

Comment 3

19 years ago
Bulk move of XPInstall (component to be deleted) bugs to Installer: XPInstall
Engine
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.