AddFile: Passing "" as the folder object returns error -3 except on Macintosh

RESOLVED INVALID

Status

Core Graveyard
Installer: XPInstall Engine
P3
normal
RESOLVED INVALID
19 years ago
2 years ago

People

(Reporter: Jimmy Lee, Assigned: Syd Logan)

Tracking

Trunk
Future
All
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

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

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

Install.StartInstall("Functional:f_addsubcomp_blankobject",
"f_addsubcomp_blankobject", vi, 0);
err = Install.AddSubcomponent(regName, vi, jarSrc, "", jarSrc, true);
Install.LogComment("AddSubcomponent returns = " + err);
if (0 == Install.GetLastError())
	Install.FinalizeInstall();
else
	Install.AbortInstall();

RESULT:
From Linux and Windows, the file is not installed.  The Install.log shows the
following:

---------------------------------------------------------------------------
http://jimbob/jars/f_addsubcomp_blankobject.jar     --     08/12/1999 13:58:35
---------------------------------------------------------------------------

     Functional: f_addsubcomp_blankobject


     ** ERROR (-3): Installing:
     ** AddSubcomponent returns = -3

     Install script aborted
     Finished Installation  08/12/1999 13:58:35

From the Macintosh, the installation does complete.  The file is installed to
the "Program" directory.  There are no errors.  The version registry is updated
to reflect this installation.

EXPECTED RESULT:
I believe the installation should fail.  Error -3 is not documented, so we
either need to document it or assign an appropriate documented error.

The Macintosh should fail like Linux and Windows.

Updated

19 years ago
Target Milestone: M15

Comment 1

19 years ago
Bulk move of XPInstall (component to be deleted) bugs to Installer: XPInstall
Engine

Comment 2

18 years ago
we should return an err, and not install the file.
reassign to sgehani
bug meeting 3/20
Assignee: cathleen → sgehani
Target Milestone: M15 → M17

Updated

18 years ago
Status: NEW → ASSIGNED

Comment 3

18 years ago
will fix in PR3
Summary: AddSubcomponent: Passing "" as the folder object returns error -3 except on Macintosh → AddFile: Passing "" as the folder object returns error -3 except on Macintosh
Target Milestone: M17 → M18
Resetting target field for missed milestones
Target Milestone: M18 → ---

Comment 5

17 years ago
Over to Syd for installer bug triage
Assignee: sgehani → syd
Status: ASSIGNED → NEW
(Assignee)

Updated

17 years ago
Target Milestone: --- → M1
(Assignee)

Updated

17 years ago
Target Milestone: M1 → Future
install.js is no longer supported
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.