Closed Bug 187979 Opened 22 years ago Closed 21 years ago

getcomponentfolder test case fails

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.4alpha

People

(Reporter: jimmykenlee, Assigned: ssu0262)

References

Details

(Keywords: regression, Whiteboard: [adt3])

Attachments

(1 obsolete file)

Build: 2003-01-03-08-trunk(WIN), 2003-01-03-08-trunk(LINUX),
2003-01-03-08-trunk(MAC OS X)

1. From http://jimbob/trigger3.html, select a_getcomponentfolder from the
   Acceptance drop-down and click Trigger case button
2. Click Install button from Software Installation dialog

RESULT:
Dialog returns "script error".

Install.log returns:
-------------------------------------------------------------------------------
http://jimbob/jars/a_getcomponentfolder.xpi  --  01/06/2003 16:06:59
-------------------------------------------------------------------------------

     Acceptance: a_getcomponentfolder
     --------------------------------

     [1/1]	Installing: C:\Program Files\Netscape\122302\a_getcomponentfolder.txt

     Install **FAILED** with error -229  --  01/06/2003 16:06:59

Installscript:
regName = "a_getcomponentfolder";
jarSrc = "smrtupdt.txt";
var vi = "1.0.1.15";

initInstall("Acceptance: a_getcomponentfolder", "acceptance", vi, 0);
f = getFolder("Program");
addFile(regName, vi, jarSrc, f, "a_getcomponentfolder.txt", true);
if (0 == getLastError())
	performInstall();
else
	cancelInstall();
compFolder = getComponentFolder("acceptance" + "/" + regName);
logComment("GetComponentFolder should return path to Program directory: " +
compFolder);

EXPECTED RESULT:
Installation is successful.  It appears the error occurs at:
compFolder = getComponentFolder("acceptance" + "/" + regName);
Nominating for beta.  This used to work, and now it doesn't.  By the way, this
broke in 1.2.1.  I don't know how important this API is, but it is a regression.
Keywords: nsbeta1
Installer triage team: nsbeta1+/adt3
Assignee: dveditz → ssu
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt3]
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.1alpha
Target Milestone: mozilla1.1alpha → mozilla1.4alpha
Blocks: 197105
Attached patch patch v1.0 (obsolete) — Splinter Review
this fixes the problem, but I'm not sure if it's the right thing to do. 
checking with dveditz....
This patch throws away the subdirectory. The right fix is contained in the
125106 uber-patch which contained general nsIFile/intl cleanups. You can't
really separate out just the fix for this one spot though.
Depends on: 125106
Attachment #118345 - Attachment is obsolete: true
Attachment #118345 - Flags: review-
No longer depends on: 125106
Depends on: 125106
QA Contact: jimmylee → gbush
fwiw, I am seeing these tests show 'success' now vs cancelled as noted here ,
however they show 'null' as  result
problem was fixed along with bug 125106.

both 1 and 2 param flavors of the function should be working now.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
verified, test cases returning 'success'
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: