Closed Bug 58345 Opened 25 years ago Closed 17 years ago

if ~/.netscape/"old history.dat" exists, we fail to rename history.dat and we corrupt history

Categories

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

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED WONTFIX
mozilla1.2alpha

People

(Reporter: bzbarsky, Unassigned)

References

Details

Attachments

(2 files)

Linux all trunk builds for the last few months up to and including 2000102708. When I migrate my Netscape 4.x profile, I get the messages: Inside Migrate Profile routine. start of pref migration failed to migrate properly. err=-2147418113 The resulting migrated profile has a corrupt history.dat. This is manifested as follows: The history window is empty, and links are not marked as followed. The only way to fix the problem that I have found is to remove Mozilla's history.dat. After that things work fine.
in nsPrefMigration.cpp, DoSpecialUpdates() is supposed to move the 4.x history file out of the way. it should be moving it to "old history.dat" question: do you have a "old history.dat" file in your .netscape directory? that may cause this problem. (I'll try on my build.) also, if migration fails before we call DoSpecialUpdates() we won't move that file to the side. dbragg, we should probably be removing the 4.x history file in DoSpecialUpdates(), instead of renaming it. I'll attach a patch.
Keywords: rtm
Whiteboard: [rtm need info]
boris, can you check your .netscape directory? if you don't already have an "old history.dat" file in .netscape, my guess is migration is failing for you in other ways. we can work on figuring that out.
Assignee: dbragg → sspitzer
here's a patch to fix the problem if "old history.dat" exists in the profile directory.
There is no "old history.dat" in my .netscape directory. Migration also does not migrate mailnews preferences at all, so I am guessing that there is a failure somewhere before migration gets to that.
ok, let me change this bug into the bug where we fail if "old history.dat" exists. (since the attached patch will fix that bug.) can you send me your 4.x prefs.js file so I can try to reproduce your migration failure? the "old history.dat" file is not rtm, removing keywords.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: rtm
Summary: history.dat migrated incorrectly; causes corrupt history → if ~/.netscape/"old history.dat" exists, we fail to rename history.dat and we corrupt history
Whiteboard: [rtm need info]
migration bugs to racham
Assignee: sspitzer → racham
Status: ASSIGNED → NEW
Product: Browser → MailNews
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9
Target Milestone: mozilla0.9.9 → mozilla1.2
mass re-assign.
Assignee: racham → sspitzer
Status: ASSIGNED → NEW
Product: MailNews → Core
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
QA Contact: agracebush → profile-migration
Product: Core → MailNews Core
NS4.x migration bug. We don't support that in Shredder trunk builds anymore, do we?
no, we don't - marking wontfix.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: