Closed
Bug 29601
Opened 25 years ago
Closed 25 years ago
File.delete fails and returns -229 error.
Categories
(Core Graveyard :: Installer: XPInstall Engine, defect, P3)
Core Graveyard
Installer: XPInstall Engine
Tracking
(Not tracked)
VERIFIED
FIXED
M16
People
(Reporter: depman1, Assigned: dbragg)
References
Details
builds 2000-02-28. all platforms.
1. Go to http://jimbob/trigger2.html.
2. Select a_fileop_filedelete from dropdown, or enter in URL field
http://jimbob/jars/a_fileop_filedelete.xpi.
3. Trigger. OK.
4. Check logfile.
Results: Install failed with -229 error.
5. Check Program folder for filedelete.txt.
Result: Not there.
Expected. File should first be installed (first part of script), then deleted.
note: If we comment out the file install part, manually copy the .txt into
the Program directory, and just trigger the file delete part, it still
doesn't work.
fileDelete (install object) works. It's the File.delete that isn't. See script
at http://jimbob/cracked/a_fileop_filedelete/install.js
Reporter | ||
Comment 1•25 years ago
|
||
changed QA contact to depstein@netscape.com
QA Contact: jimmylee → depstein
This is a JAR test bug.
Test case is trying to install a file called "filedelete.txt", but inside the
test JAR file, it does not contain a file called "filedelete.txt", but a file
called "smrtupdt.txt" exist.
So, getting a -229 (script error) is indeed a correct error msg.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 3•25 years ago
|
||
Sorry about that. I rezipped this up with filedelete.txt. It's failing w/ -229:
-------------------------------------------------------------------------------
file:///C|/FileOps/a_fileop_filedelete/a_fileop_filedelete.xpi -- 02/29/2000
11:31:35
-------------------------------------------------------------------------------
Install **FAILED** with error -229
Finished Installation 02/29/2000 11:31:35
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Reporter | ||
Comment 5•25 years ago
|
||
I tried the same thing I did for the File.copy case (bug 29602):
fTemp = f + "/" + jarSrc; // instead of f + jarSrc;
fileSource = getFolder("file:///", fTemp);
This did not change anything. still get -229 cross platform.
David, it's failing because we're unable to get to the script inside of the xpi
file. Looks like the xpi file maybe corrupted. I even downloaded the file
by itseld, and I was not able to open it in WinZip.
Can you check?
Target Milestone: M15
Reporter | ||
Comment 7•25 years ago
|
||
Jimmy and I did some follow-up work on this and found that File.Delete
(capitalized) will install the file, but not delete it and returning -229
(Jimmy created a_fileop_filedelete2.xpi on http://jimbob/jars). Where as
File.delete completely fails and returns -229. fileDelete (the old method in the
install object) doesn't return the error, but has the problem with the forward
slash (as with other FileOp routines like copy and execute).
Here's the logfile for a_fileop_filedelete2.xpi (using File.Delete):
-------------------------------------------------------------------------------
http://jimbob/jars/a_fileop_filedelete2.xpi -- 03/03/2000 15:26:25
-------------------------------------------------------------------------------
Acceptance: a_fileop_filedelete
-------------------------------
** addFile returns = 0
[1/1] Installing: C:\Program Files\Netscape\Netscape
6\bin\filedelete.txt
Install completed successfully
The File Delete part
--------------------
** The file pathway = C:\Program Files\Netscape\Netscape
6\bin\filedelete.txt
Install **FAILED** with error -229
Install **FAILED** with error -229
Finished Installation 03/03/2000 15:26:25
Reporter | ||
Comment 8•25 years ago
|
||
To make this clearer, I created a_fileop_filedelete3.xpi (does not install the
file, it just is written to delete an existing file using File.delete). Trigger
this from http://jimbob/jars/a_fileop_filedelete3.xpi. Before triggering, place
filedelete.txt in the "Program" directory. A copy of filedelete.txt is zipped up
in the archive... After triggering, the file is not deleted from the directory.
dbragg will investigate
bug meeting 3/20
Assignee: cathleen → dbragg
Status: REOPENED → NEW
Comment 11•25 years ago
|
||
Marking as fixed:
-------------------------------------------------------------------------------
http://jimbob/jars/a_fileop_filedelete2.xpi -- 04/23/2000 21:28:04
-------------------------------------------------------------------------------
The File Delete part
--------------------
** The file pathway = /builds/dougt/mozilla/dist/bin/filedelete.txt
** fileDelete returns = 0
[1/1] Delete File: /builds/dougt/mozilla/dist/bin/filedelete.txt
Install completed successfully
Finished Installation 04/23/2000 21:28:04
-------------------------------------------------------------------------------
http://jimbob/jars/a_fileop_filedelete.xpi -- 04/23/2000 21:23:29
-------------------------------------------------------------------------------
Acceptance: a_fileop_filedelete
-------------------------------
** addFile returns = 0
[1/1] Installing: /builds/dougt/mozilla/dist/bin/filedelete.txt
Install completed successfully
The File Delete part
--------------------
** The file pathway = /builds/dougt/mozilla/dist/bin/filedelete.txt
** fileDelete returns = 0
[1/1] Delete File: /builds/dougt/mozilla/dist/bin/filedelete.txt
Install completed successfully
Finished Installation 04/23/2000 21:23:29
Verified on linux.
Status: NEW → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 12•25 years ago
|
||
works fine. tested on WinNT, Win98, Linux and Mac.
Status: RESOLVED → VERIFIED
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•