Closed Bug 49863 Opened 25 years ago Closed 25 years ago

File.copy unexpectedly returns -201 if file already exists

Categories

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

defect

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: jimmykenlee, Assigned: dveditz)

Details

Build: 2000-08-22-08-M18(WIN), 2000-08-22-08-M18(LINUX) 1. From http://jimbob/trigger3.html, click on Acceptance drop-down and choose a_fileop_filecopy 2. Click Trigger case button 3. Click Install from confirmation dialog 4. Repeat steps 1-3. RESULT: Error message returned from install.log is -201 (UNEXPECTED ERROR). The expected error message is -230 (ALREADY EXISTS). This used to work. This change may have been the result of the fix for Bug 45911 and/or Bug 45913. EXPECTED RESULT: Error -230. Install.log: ------------------------------------------------------------------------------- http://jimbob/jars/a_fileop_filecopy.xpi -- 08/22/2000 15:02:24 ------------------------------------------------------------------------------- Acceptance: a_fileop_filecopy ----------------------------- ** addFile returns = 0 [1/1] Replacing: C:\Program Files\Netscape\Netscape 6\components\filecopy.txt Install completed successfully The File Copy part ------------------ ** fileSource pathway = C:\Program Files\Netscape\Netscape 6\components\filecopy.txt ** fileTarget pathway = C:\Program Files\Netscape\Netscape 6\chrome\ ** File.copy returns = 0 [1/1] Copy File: C:\Program Files\Netscape\Netscape 6\components\filecopy.txt to C:\Program Files\Netscape\Netscape 6\chrome Install **FAILED** with error -201 Install **FAILED** with error -201 Finished Installation 08/22/2000 15:02:24
I suspect this may be reproducible on Mac, but no working build has been released yet.
Brain drain. The expected behavior is that no error is returned since we now support copying over an existing file. But this is already being tracked by Bug 45913. Let's pretend that this bug report never happened. This should be marked INVALID.
Summary: File.copy returns -201 instead of -230 if file already exists → File.copy unexpectedly returns -201 if file already exists
Per discussion with Jimmy, marking INVALID.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
..
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.