Closed Bug 29602 Opened 26 years ago Closed 26 years ago

File.copy (move & rename) doesn't work on Linux & Mac. -232 error

Categories

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

x86
Linux

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: depman1, Assigned: dbragg)

References

Details

(Keywords: platform-parity)

builds 2000-02-28. works OK on NT. 1. Linux and Mac: Go to http://jimbob/trigger2.html 2. Select a_fileop_filecopy ( using "file:///" as 1st GetFolder param) 3. Trigger. OK 4. Check logfile. Result: file doesn't copy, error -232 (source not found). 5. Check Chrome folder (where filecopy.txt is supposed to be copied to). Result: filecopy.txt isn't copied there. Expected: It should be copied to Chrome folder w/o any errors. To see script, go to http://jimbob/cracked/a_fileop_filecopy/install.js
Dave, what's the install.log on Mac and Unix?
Apparently, it's not appending a '/' in Linux, so it's looking for "packagefilecopy.txt" instead of "package/filecopy.txt". Xpi copies the file fine on NT and Win98. Here is the Linux log: ------------------------------------------------------------------------------- http://jimbob/jars/a_fileop_filecopy.xpi -- 02/28/2000 17:06:51 ------------------------------------------------------------------------------- Acceptance: a_fileop_filecopy ----------------------------- ** addFile returns = 0 [1/1] Installing: /u/depstein/builds/M14/feb28/package/filecopy.txt Install completed successfully The File Copy part ------------------ ** fileSource pathway = //u/depstein/builds/M14/feb28/packagefilecopy.txt ** fileTarget pathway = /u/depstein/builds/M14/feb28/package/chrome ** ERROR (-232): Copy File: //u/depstein/builds/M14/feb28/packagefilecopy.txt to /u/depstein/builds/M14/feb28/package/chrome ** File.copy returns = -232 Install script aborted Finished Installation 02/28/2000 17:06:51 --------------------
On Mac, it looks like it can't find the filecopy.txt (see fileSource pathway). Here is the Mac log: ------------------------------------------------------------------------------- http://jimbob/jars/a_fileop_filecopy.xpi -- 02/28/2000 17:11:35 ------------------------------------------------------------------------------- Acceptance: a_fileop_filecopy ----------------------------- ** addFile returns = 0 [1/1] Installing: Macintosh HD:Desktop Folder:mozilla-mac-M15:filecopy.txt Install completed successfully The File Copy part ------------------ ** fileSource pathway = Macintosh HD:Desktop Folder:mozilla-mac-M15: ** fileTarget pathway = Macintosh HD:Desktop Folder:mozilla-mac-M15:Chrome: ** ERROR (-232): Copy File: Macintosh HD:Desktop Folder:mozilla-mac-M15: to Macintosh HD:Desktop Folder:mozilla-mac-M15:Chrome: ** File.copy returns = -232 Install script aborted Finished Installation 02/28/2000 17:11:35
Some good news for Linux. adding a '/' in the script helped. When I used: fTemp = f + "/" + jarSrc; // instead of f + jarSrc; fileSource = getFolder("file:///", fTemp); fileCopy worked on Linux, but not on Mac. Still get -232 error on Mac. The current xpi uses '/'.
changed QA contact. added pp for keyword.
Keywords: pp
QA Contact: jimmylee → depstein
The same problem occurs with File.move (surprise, surprise)! -232 error. Try http://jimbob/trigger2.html and trigger a_fileop_filemove. same pathway problem and failure (works OK on NT, but not on Linux and Mac).
Summary: File.copy isn't working on Linux & Mac. Returns -232 error → File.copy (& move) doesn't work on Linux & Mac. Returns -232 error
Same problem with File.rename. Returns -232 error. Add the "/" in the script and it works OK on Linux. Try triggering a_fileop_filerename2.xpi on jimbob/jars. Here is the log file for rename (Linux): ------------------------------------------------------------------------------- http://jimbob/jars/a_fileop_filerename.xpi -- 03/09/2000 17:20:11 ------------------------------------------------------------------------------- Acceptance: a_fileop_filerename ------------------------------- [1/1] Installing: /u/depstein/builds/M14/mar09/package/smrtupdt.txt Install completed successfully The filerename part ------------------- ** ERROR (-232): Rename File: filerename.txt ** Path to fileSource = //u/depstein/builds/M14/mar09/packagesmrtupdt.txt ** File.rename returns = -232 Install script aborted Finished Installation 03/09/2000 17:20:11
Summary: File.copy (& move) doesn't work on Linux & Mac. Returns -232 error → File.copy (move & rename) doesn't work on Linux & Mac. -232 error
Target Milestone: M15
dbragg will look at this. bug meeting 3/20
Depends on: 24984
reassign to dbragg...
Assignee: cathleen → dbragg
Target Milestone: M15 → M16
moving to M16
Marking as fixed: Acceptance: a_fileop_filecopy ----------------------------- ** addFile returns = 0 [1/1] Installing: /builds/dougt/mozilla/dist/bin/components/filecopy.t xt Install completed successfully The File Copy part ------------------ ** fileSource pathway = /builds/dougt/mozilla/dist/bin/components/filecopy. txt ** fileTarget pathway = /builds/dougt/mozilla/dist/bin/chrome/ ** File.copy returns = 0 [1/1] Copy File: /builds/dougt/mozilla/dist/bin/components/filecopy.tx t to /builds/dougt/mozilla/dist/bin/chrome/filecopy.txt Install completed successfully Finished Installation 04/23/2000 21:29:57 Verified on linux. mac should be the same.
Marking as fixed: Acceptance: a_fileop_filecopy ----------------------------- ** addFile returns = 0 [1/1] Installing: /builds/dougt/mozilla/dist/bin/components/filecopy.t xt Install completed successfully The File Copy part ------------------ ** fileSource pathway = /builds/dougt/mozilla/dist/bin/components/filecopy. txt ** fileTarget pathway = /builds/dougt/mozilla/dist/bin/chrome/ ** File.copy returns = 0 [1/1] Copy File: /builds/dougt/mozilla/dist/bin/components/filecopy.tx t to /builds/dougt/mozilla/dist/bin/chrome/filecopy.txt Install completed successfully Finished Installation 04/23/2000 21:29:57 Verified on linux. mac should be the same.
Status: NEW → RESOLVED
Closed: 26 years ago
this bug is fixed
Status: RESOLVED → REOPENED
FIXED.
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
File copy works great cross-platform. File move isn't working using this script, though it's returning a different error (-214). I'll investigate this (might have something to do with locating the "Temp" directory) and submit a separate bug for File move. File remove works fine except on Linux. I'll investigate that one also.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.