Closed Bug 521955 Opened 15 years ago Closed 15 years ago

Can't edit server settings when check is cancelled

Categories

(Thunderbird :: Account Manager, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0rc1

People

(Reporter: Usul, Assigned: bwinton)

References

Details

(Keywords: regression, Whiteboard: [no l10n impact])

Attachments

(1 file)

STR: 1) Tools -> Account settings 2) New Account i) name l ii) email address : l@z.om iii) password l 3) press create account 4) press the stop button 5) edit settings manually Expected results : I can enter my server settings results : I can't the item Server setting is not present under the account name.
Flags: blocking-thunderbird3?
Blake, does this look like a dup?
Assignee: nobody → bwinton
Flags: blocking-thunderbird3? → blocking-thunderbird3+
Priority: -- → P1
Target Milestone: --- → Thunderbird 3.0rc1
Yeah, this does look like a dupe of bug 490430. Ludovic, were you using a nightly or 3.0b4 to reproduce this? (And if it was 3.0b4, could you try to reproduce it using a nightly, because I can't seem to using the steps you provide.) (A screencast might also show me something that I'm missing, if you wanted to try recording one, and emailing it to me.) Thanks, Blake.
Status: NEW → ASSIGNED
Whiteboard: [looks like a dup, asking _Tsk_ to reproduce on nightly]
It's not actually a dupe, and I've got a screencast from Ludovic which I'll post tomorrow morning that demonstrates the problem.
Whiteboard: [looks like a dup, asking _Tsk_ to reproduce on nightly]
The plot drags a bit after opening the account manager, though ;) I was able to repro once, and when I did closing and reopening the account manager made the missing bits show up, but then after that I lost whatever the key trick is and couldn't repro again.
The key trick seems to be starting from the account manager, then trying to create a new account from the dropdown, and then hitting manual settings to go back to the account manager. At least, that's how I've been repro-ing it.
I can also repro it on Ubuntu, so it's not a Mac-only thing.
OS: Mac OS X → All
Hardware: x86 → All
So, there are a couple of bits to this patch, but they're kind of mixed together. The main thing that fixes this bug is that I've reversed the order of the lines: account.addIdentity(identity); and account.incomingServer = inServer; because setting the incomingServer seems to trigger the account manager to reload its list of servers (as per mailnews/base/prefs/content/AccountWizard.js line 438-ish, which says: // we mark the server as invalid so that the account manager won't // tell RDF about the new server - it's not quite finished getting // set up yet, in particular, the deferred storage pref hasn't been set. ) and if the identity isn't there, the account manager won't show the server settings. (I didn't bother digging into why.) Of course, if I was going to make that change, it made sense to push the lines that initialized the identity up above the place we set it in the account, so that's the second part of the patch. Philor, if you'ld like to see just the first change, I could post a new patch with that easily enough. Thanks, Blake.
Attachment #406274 - Flags: superreview?(bienvenu)
Attachment #406274 - Flags: review?(philringnalda)
Whiteboard: [patch up, needs r/sr]
Comment on attachment 406274 [details] [diff] [review] A patch to fix that. looks good, but a comment would be helpful.
Attachment #406274 - Flags: superreview?(bienvenu) → superreview+
Cool. I've added the following: // Note: Setting incomingServer will cause the AccountManager to refresh // itself, which could be a problem if we came from it and we haven't set // the identity (see bug 521955), so make sure everything else on the // account is set up before you set the incomingServer. Thanks, Blake.
Whiteboard: [patch up, needs r/sr] → [patch up, needs r]
Whiteboard: [patch up, needs r] → [no l10n impact][patch up, needs r]
Attachment #406274 - Flags: review?(philringnalda) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [no l10n impact][patch up, needs r] → [no l10n impact]
Grr, and http://hg.mozilla.org/comm-central/rev/29697808ed64 since I forgot that you adding the comment doesn't do me any good if you don't add the patch with the added comment to the bug.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: