Closed
Bug 40316
Opened 25 years ago
Closed 24 years ago
No error when migrating profile having no user files, can crash.
Categories
(MailNews Core :: Profile Migration, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: laurel, Assigned: racham)
References
Details
(Keywords: crash, Whiteboard: [nsbeta1+]Have Fix)
Attachments
(4 files)
22.18 KB,
text/plain
|
Details | |
4.54 KB,
patch
|
Details | Diff | Splinter Review | |
3.66 KB,
patch
|
Details | Diff | Splinter Review | |
749 bytes,
patch
|
Details | Diff | Splinter Review |
Using 2000-05-23-09m1 commercial build on NT 4.0
Haven't yet tried this on linux or mac...will report back
Not sure if this is really Seth's or the profile manager/selection dialog
people.
After removing 4.x user files from disk then doing the following steps to
migrate that profile then another, a crash consistently occurs. We should
instead display an error that the profile's files cannot be located and stop
gracefully. This problem should not pass through to the next profile to be
migrated.
Steps:
1. 4.x has several profiles.
2. Through NT/Win32 file manager (NOT through the Communicator 4.x profile
manager) remove the user directory for a profile.
3. Run seamonkey using the -installer argument.
4. When seamonkey profile picker appears, select the profile which now has no
user director. Click Start Netscape which will launch the migration
confirmation dialog, click OK to begin migration.
Result #1: No error dialog appears about missing files. User is returned
to the profile picker.
5. Still in the profile picker, select another profile to migrate (one that
DOES have its user files intact). Click Start Netscape which will launch the
migration confirmation dialog, click OK to begin migration.
Result #2: Crash occurs.
Result: No error is displayed to user about the profile's missing user files
when migration attempted. If you choose another profile which has all files
present, you crash.
Happens on Mac (OS 9.0), too. Will attach macsbug report.
Can't happen on linux since we can't have multiple profiles for migration?
Comment 3•25 years ago
|
||
Target nominated bugs to M16. Please update as necessary.
Target Milestone: --- → M16
Comment 6•25 years ago
|
||
accepting all "future" bugs to get them off my "new" bug radar.
Status: NEW → ASSIGNED
Comment 7•25 years ago
|
||
migration bugs to racham
Assignee: sspitzer → racham
Status: ASSIGNED → NEW
Target Milestone: Future → ---
Comment 8•24 years ago
|
||
nominating for nsbeta1. If we want to improve migration, this would be worth
looking into.
Keywords: nsbeta1
Comment 9•24 years ago
|
||
marking nsbeta1+ and moving to mozilla0.9
Priority: P3 → P2
Whiteboard: [nsbeta1+]
Target Milestone: --- → mozilla0.9
Assignee | ||
Comment 10•24 years ago
|
||
I remember Don Bragg fixing this problem.
Please try to reproduce this with the latest build and update the bug with results.
thanks
bhuvan
Assignee | ||
Comment 11•24 years ago
|
||
If you can't reproduce this, then it is a dup of 47097.
Assignee | ||
Comment 12•24 years ago
|
||
Added code to check the existence of the 4.x profile directory and throw an
alert informing the user that the source profile directory does not exists and
that particular profile can't be migrated. User is back on profile picker and
can migrate another 4.x profile (whose directory exists) successfully without
crashing...
Patch coming up..
Status: NEW → ASSIGNED
Assignee | ||
Comment 13•24 years ago
|
||
Assignee | ||
Comment 14•24 years ago
|
||
I had to add some code int he profielmanager component itself. Adding Conrad and
Seth for reviews.
Please do let me know, if you feel that the alert message need to be more
informative. Thanks.
Comment 15•24 years ago
|
||
Bhuvan, I like it and the error msg is fine. One thing though. I'm not sure
about profileDirExists(). Internally the impl calls nsProfile::GetProfileDir().
The problem with GetProfileDir() is that, in the case of a current profile, it
will create the directory if it doesn't exist so it will always return TRUE. It
will work for this case since we're talking about unmigrated profiles but I
don't think we should rely on this hidden behavior. I've never liked this -
"getters" should just "get". If profileDirExists() is put on the public API,
people may use it and it will not do what they expect. See bug 62418. I have a
patch there for stripping down GetProfileDir() to what it really should do.
Bhuvan, you reviewed that but it stalled waiting for sr from Ben which never
happened :-/ The two problems are closely related - we could combine some things.
Assignee | ||
Comment 16•24 years ago
|
||
Conrad, I agree with you totally. Though we call this (profileDirExists) on only
migrated cases, there is a good chance that others can use as general purpose
routine and end doing something they don't want. As you suggested, it will
certainly better to combine these two. It has been a while since I reviewed
62418. We shall get that in...it is also an important improvement for
profilemanager in terms of error handling. Adding dependency for tracking purposes.
For bug 62418, send a mail to Ben about the review again.
Depends on: 62418
Assignee | ||
Comment 17•24 years ago
|
||
Seth,
If you have any cycles, can you super-review bug 62418 for Conrad, so that we
can knock these 2 bugs down. I will send you a mail as reminder.thanks.
bhuvan
Comment 18•24 years ago
|
||
any luck on this one?
Comment 19•24 years ago
|
||
just so I understand:
when you do "profileDirExists()", it checks to see if the 4.x profile
directory exists. that works, because before we migrate, the profile directory
associated with a profile is the 4.x profile.
if so, sr=sspitzer
before (or after) you land this, you should run your alert text by robinf or
someone on the docs / ui team.
Assignee | ||
Comment 20•24 years ago
|
||
Assignee | ||
Comment 21•24 years ago
|
||
Conrad's patch in bug 62418 will do more good things for profilemanager. Patch
based that code (posted in previous update) is simpler and cleaner. I will talk
to Robin about the alert text.
Comment 23•24 years ago
|
||
Bhuvan, for the missing profile directory, here's what I'd suggest for the error
message text: "This profile cannot be migrated because the directory containing
the profile could not be found. Choose another profile or create a new one."
Assignee | ||
Comment 24•24 years ago
|
||
Comment 25•24 years ago
|
||
+ promptService.alert(window, profileDirMissingTitle, errorMessage);
+ return;
When, it returns here, shouldn't it return false?
With that (or if that's OK), r=ccarlen
Updated•24 years ago
|
Whiteboard: [nsbeta1+] → [nsbeta1+]Have Fix
Assignee | ||
Comment 26•24 years ago
|
||
will return false. that's better. thanks.
Assignee | ||
Comment 27•24 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 28•24 years ago
|
||
OK using 2001-05-09-04 commercial trunk build win98.
OK using 2001-05-08-08 commercial trunk build mac OS 9.0.
Alert displays with the text robinf suggested.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•