Closed Bug 30946 Opened 25 years ago Closed 25 years ago

File.exists & File.isFile don't work on Linux & Mac (file in "Program" dir)

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: depman1, Assigned: dbragg)

References

Details

(Keywords: platform-parity)

builds 2000-03-07. also see bug 30945. 1. Go to http://jimbob/trigger2.html 2. Enter a_fileop_fileexists3.xpi OR a_fileop_fileisfile.xpi in URL field. 3. Trigger. 4. Check HD and logfile. Result: File installed in "Program" folder, no error code returned, but in Linux and Mac: * return value of File.exists or File.isFile = 0 (false) * pathway messed up: //u/.../packagefileisfile.txt (no "/" btwn folder & .txt) Expected: * return value of File.exists or File.isFile = 1 (true) * pathway nice: //u/.../package/fileisfile.txt (no "/" btwn folder & .txt) again, these scripts don't use "/" between folder object and jarSource file. To see what happens when the slash is used, try a_fileop_fileexists2.xpi OR a_fileop_fileisfile2.xpi. logfiles from Linux and Mac to come ...
Note that when "/" is used btwn folder obj and appended file to get the pathway, it works in Linux, but not Mac. Here are the Linux log files: ------------------------------------------------------------------------------- http://jimbob/jars/a_fileop_fileexists.xpi -- 03/07/2000 11:28:33 ------------------------------------------------------------------------------- Acceptance: a_fileop_fileexists ------------------------------- [1/1] Installing: /u/depstein/builds/M14/mar07/package/components/fileexists.txt Install completed successfully The fileexists part ------------------- ** Path to fileexists.txt = //u/depstein/builds/M14/mar07/package/componentsfileexists.txt ** fileExists for file should return 1 (true) = 0 ** Directory returned = /u/depstein/builds/M14/mar07/package ** fileExists for directory should return 0 (false) = 1 Install completed successfully------------------------------------------------------------------------------- http://jimbob/jars/a_fileop_fileisfile2.xpi -- 03/07/2000 16:14:33 ------------------------------------------------------------------------------- Acceptance: a_fileop_fileisfile ------------------------------- [1/1] Installing: /u/depstein/builds/M14/mar07/package/fileisfile.txt Install completed successfully The fileIsFile part ------------------- ** Path to file = //u/depstein/builds/M14/mar07/package/fileisfile.txt ** fileIsFile should return 1 (true) = true ** Path to file = /tmp/ ** fileIsFile should return 0 (false) = false Install completed successfully Finished Installation 03/07/2000 16:14:34 Finished Installation 03/07/2000 11:28:34
In File.exists logs, look at "fileExists for file ..." lines. Ignore directory returns for this bug. Here are the Mac logs: ------------------------------------------------------------------------------- http://jimbob/jars/a_fileop_fileexists.xpi -- 03/07/2000 15:38:28 ------------------------------------------------------------------------------- Acceptance: a_fileop_fileexists ------------------------------- [1/1] Replacing: Macintosh HD:Desktop Folder:mozilla-mac- M15:Components:fileexists.txt Install completed successfully The fileexists part ------------------- ** Path to fileexists.txt = Macintosh HD:Desktop Folder:mozilla-mac-M15: ** fileExists for file should return 1 (true) = 0 ** Directory returned = Macintosh HD:Desktop Folder:mozilla-mac-M15: ** fileExists for directory should return 0 (false) = 1 Install completed successfully Finished Installation 03/07/2000 15:38:29 ------------------------------------------------------------------------------- http://jimbob/jars/a_fileop_fileisfile.xpi -- 03/07/2000 16:06:05 ------------------------------------------------------------------------------- Acceptance: a_fileop_fileisfile ------------------------------- [1/1] Installing: Macintosh HD:Desktop Folder:mozilla-mac-M15:fileisfile.txt Install completed successfully The fileIsFile part ------------------- ** Path to file = Macintosh HD:Desktop Folder:mozilla-mac-M15: ** fileIsFile should return 1 = false ** Path to file = Macintosh HD:Temporary Items: ** fileIsFile should return 0 = false Install completed successfully Finished Installation 03/07/2000 16:06:06
QA Contact: jimmylee → depstein
added pp to keywords.
Keywords: pp
Target Milestone: M15
reassign to dbragg bug meeting 3/20
Assignee: cathleen → dbragg
Depends on: 24984
moving to M16
Target Milestone: M15 → M16
I believe that this is a dup of another that I marked fixed. ------------------------------------------------------------------------------- http://jimbob/jars/a_fileop_fileisfile.xpi -- 04/23/2000 22:11:06 ------------------------------------------------------------------------------- Acceptance: a_fileop_fileisfile ------------------------------- [1/1] Replacing: /builds/dougt/mozilla/dist/bin/fileisfile.txt Install completed successfully, restart required The fileIsFile part ------------------- ** Path to file = /builds/dougt/mozilla/dist/bin/fileisfile.txt ** fileIsFile should return 1 (true) = true ** Path to file = /tmp// ** fileIsFile should return 0 (false) = false Finished Installation 04/23/2000 22:11:07 Verified on linux. still needs to be verified on mac.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fixed. works fine on all platforms.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.