Closed Bug 23744 Opened 26 years ago Closed 26 years ago

failure to save prefs after running the Account Wizard

Categories

(MailNews Core :: Backend, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: sspitzer)

References

Details

I've been seeing this bug, more details coming soon. in AccountWizard.js, line 207, prefs.SavePrefFile(); I haven't investigated, but it's a bad bug. basically, if you run mozilla the first time, set up accounts, and quit, when you come back, they are all gone. (data loss) I'll investigate today.
Status: NEW → ASSIGNED
Target Milestone: M13
marking m13, accepting
QA Contact: lchiang → nbaca
Do you set up more than one acount at one time?
here's the error I see on the console: Error saving prefs! ex = [Exception... "Component returned failure code: 0xfffffffd [nsIPref.SavePrefFile]" nsresult: "0xfffffffd (<unknown>)" location: "JS frame :: chrome://messenger/content/AccountWizard.js :: onFinish :: line 206" data: no] to reproduce, do this: new profile launch mail, wizard will auto. pop up add an imap server, when you hit "finish" you'll get this error.
ok, I got a beat on this bug. I think the problem only occurs when you use -CreateProfile if you use the profile wizard, you won't get this bug, because that code path creates and initalizes prefs correctly. when you use -CreateProfile, it doesn't, so SavePref failes because the file spec that is supposed to point to the prefs.js file is null, because there is no prefs.js file! I'm testing a fix for this right now.
fix in hand, getting it reviewed now. in the mean time, I'll look at other profile bugs to see if this will fix them.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
marking fixed.
How do I reproduce this problem? I used the 1/11 and 1/12 build for Linux and Windows and the accounts remain after restarting. I created the new accounts using the New button on the "Profiles & Migration" window.
on linux, reproduce like this: rm ~/.mozilla mozilla -CreateProfile foobar launch mail, create an account, doesn't matter which one (if the bug exists, you see that javascript error to the console) (exit mozilla, if the bug exists, you won't see ~/.mozilla/foobar/prefs.js) with the fix, you won't get the error and you will get a prefs.js file.
Waiting on 24668 to be fixed so I can click on the Finish button w/t a crash.
Depends on: 24668
Build 2000012520M13: NT4, Linux 6.0 Verified Fixed.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.