Closed Bug 7955 Opened 26 years ago Closed 23 years ago

Component Registry file is missing type/creator info

Categories

(Core :: XPCOM, defect, P3)

PowerPC
Mac System 8.5
defect

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: sfraser_bugs, Assigned: dougt)

References

Details

(Keywords: helpwanted)

The Component Registry file that gets created has no icon, because its type and creator are blank. I guess this bug depends on 6181.
Depends on: 6181
Status: NEW → ASSIGNED
Target Milestone: M10
SSSUUUURRRREEEE...
I doubt that dp is using nsFileSpec to create the registry, because I recall that libreg still uses nspr paths.
xpcom is planning on using filespec for file operations for a ton of other reasons too. There are a few road blocks to the conversion still. I will talk about that in the xpcom needs to use filespec bug report.
Hardware: Macintosh → All
Hardware: All → Macintosh
Why is this all platforms? Type/creator info is only present on Mac.
Target Milestone: M10 → M11
Adding dougt -- he added support for this to nsFileSpec. (Maybe this is a dup).
Target Milestone: M11 → M15
If nsIFile or whatever supports this, maybe we can use that.
Assignee: dp → dougt
Status: ASSIGNED → NEW
nsIFIle will support this.
assigning to sdagley. Steve, could you do the QI and set in the right place??
Assignee: dougt → sdagley
Status: NEW → ASSIGNED
Re-assigning to samir since the installer creates the registry
Assignee: sdagley → sgehani
Status: ASSIGNED → NEW
Target Milestone: M15 → M16
We need all files to have proper types/creators. Currently, .xpt files are missing these too.
The installer doesn't create the registry. XPCOM's autoreg process does. Besides, the creator is already being set as 'MOSS' for Netscape builds which is correct. Wow! That was an easy fix :o) Simon, Restoration of type/creator occurs during AppleSingle decoding. The bug is that the release process must set these because XPInstall is generic and can't force a type/creator in installed files during its extraction process. That would be a bug against jj. CC'ing him to bring this issue to his attention.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
We can either 1. fix RegXPCom so that it creates the component registry using nsFileSpec, therefore assigning the proper file type/creator when the file is created, or 2. I can add yet another patch to the packaging system and set the Component Registry's type/creator before I build [xpcom.xpi]. However, if I remember correctly, this version of the component registry is not the one that end up on the user's machine, right? I thought that xpinstall was regenerating one at install time. If this is the case, we're back to square 1. PS: btw, why is this bug already marked fixed?
We should be using nsILocalFileMac for this. SetFileTypeAndCreator
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
The lowest level before calling into OS to create the component registry is libreg. This aint fixed. I am going to assign it to dveditz.
Ok this is assigned to sgehani who is in the same group as dveditz. Can you coordiate this with dan.
JJ, This bug was marked fixed because the Component Registry being generated already has the creator set to 'MOSS' as I specified in my comment above. And yes, we do delete the Component Registry so it can autoreg the first time. Not sure if that's still the current thinking. DP? The bug was reopened because we were getting the 'MOSS' creator for free as teh default file creator. DP's point is that we should be setting it explicitly in registry code. Fair enough.
Status: REOPENED → ASSIGNED
Also note that the creator code should be 'MOZZ" in mozilla and 'MOSS" in commercial. We really need some kind of service to get the app name/creator.
Target Milestone: M16 → M17
Resetting missed milestones
Target Milestone: M17 → ---
dp is no longer @netscape.com. reassigning qa contact to default for this component
QA Contact: dp → rayw
-> XPCOM Registry owner for triage.
Assignee: sgehani → dougt
Status: ASSIGNED → NEW
QA Contact: rayw → dougt
Keywords: helpwanted
Target Milestone: --- → Future
This file shows up as a Stuffit Archive on Mac OS X, which is certainly wrong.
There sure are ample methods on nsILocalFileMac for setting type/creator info. Just a matter of finding out where to put it in the component mgr. Though the file may be made in registry C code, I think the component mgr could find out whether it existed before calling the registry, and if it didn't and now it does, set the file type.
do we really need to have a type/creator for components/compreg.dat? What do we do for xpti.dat?
Status: NEW → RESOLVED
Closed: 25 years ago23 years ago
Resolution: --- → WONTFIX
Component: XPCOM Registry → XPCOM
QA Contact: doug.turner → xpcom
You need to log in before you can comment on or make changes to this bug.