Closed Bug 7921 Opened 25 years ago Closed 25 years ago

DOGFOOD - Saved bookmarks disappear when migrating from build to build

Categories

(Core Graveyard :: Profile: Migration, defect, P3)

x86
Windows 95
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: chofmann, Assigned: waterson)

References

Details

Blocks: 7922
Assignee: dp → waterson
Is this ours or does this go to dons group ?
This is ours. Is profile information persistent yet? Or is it just stored in
the "dist" directory. If we store it in the "dist" directory, yeah, it'll get
clobbered for each build.
Bhuvan, please help make sure they're calling the right interface to get the
profile directory and that they're getting the right value.  If the problem is
that dist is getting blown away, that'll have to wait until we deal with the
single-user vs multi-user stuff in M8 or M9.
At present the default location for the profile directories is dist\Users50.
However user can opt to store the information in a different directory (provide
the directory name at the profile creation stage, say c:\profile1) to avoid
losing information on  clobber. The problem with work around is, if you delete
mozregistry.dat, the profile information is gone (though the directories are
intact, if they are stored in a location other than the default i.e.,
dist\Users50). If deleting mozregistry is a must thing to do, then while
creating a new profile use the old profile dir (e.g., c:\profile1) as the
location of that profile in order to point to the data we gathered before the
migration.

The ideal solution will be to come with a policy to have a default directory
for profiles in a location other than dist\Users50.

Steve/John,

Any ideas on a preferred location for profile dirs ?
Actually, yes, I have a plan for profile directories.  On multi-user systems, we
should put our mozregistry.dat file in the OS user's directory like we do on
Un*x.  On single-user systems, I'm proposing that we fake up a user directory
(assuming I can figure out who you logged in as) and pretend it's a multi-user
system.  By hiding the single-user cruft in the nsFileLocation stuff, profile
manager can get nice XP behavior without a lot of effort.

The resulting model is a hierarchy of user then profile.  This means that each
user can have multiple profiles and that they're separate from any other users
profiles.  (Yeah, I know I said we weren't likely to do this work, but it solves
a lot of problems.)

If anyone knows how to find the OS user info on Windows95/98 and anything at all
about how to do this on Mac, please let me know :-)
Status: NEW → ASSIGNED
Target Milestone: M7
I'll update the bookmarks code to use the profile directory.
Depends on: 8019
Target Milestone: M7 → M8
Later to M8 because this depends on 8019 being fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Look in profile directory _first_ before failing over to the "default"
bookmarks.
What file should be holding saved bookmarks?  My bookmarks are being saved from
build to build despite my emoving profile information but I cannot verify a file
that is saving them.
Status: RESOLVED → VERIFIED
Since we'd like the file to have the same basename on all platforms and we'd
also like people to be able to just copy the old file over, we've decided that
looking for the new standard name first and then looking for the old name makes
the most sense.  This allows migration, standard naming, and some common local
usage to all work properly.  The only wierdness is when you have both files
since the one with the old name would be ignored in that case.

Any problems with that?
No longer blocks: 7922
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.