Closed
Bug 464808
Opened 16 years ago
Closed 16 years ago
Duplicate folders show in folderpane
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
Thunderbird 3.0b1
People
(Reporter: JoeS1, Assigned: Bienvenu)
References
Details
(Keywords: regression)
Attachments
(8 files, 1 obsolete file)
5.07 KB,
image/gif
|
Details | |
4.34 KB,
image/gif
|
Details | |
1.40 KB,
patch
|
standard8
:
review-
|
Details | Diff | Splinter Review |
1.78 KB,
text/plain
|
Details | |
24.47 KB,
application/x-javascript
|
Details | |
111.24 KB,
image/jpeg
|
Details | |
91.17 KB,
image/jpeg
|
Details | |
3.18 KB,
patch
|
standard8
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
Seen in: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081113 Lightning/1.0pre Shredder/3.0b1pre ID:20081113143618 All the "ghost" folders seem to function OK, but some newsgroup accounts also show duplicate subscriptions within the account. See attachment
Reporter | ||
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
Did this happen on startup, or can you tie it to particular actions you took?
Reporter | ||
Comment 3•16 years ago
|
||
On startup, but it looks like this is from remnants of deleted accounts in my profile. I venture that most folks that have used the same profile for a while will see this. See new screenshot
Reporter | ||
Comment 4•16 years ago
|
||
Assignee | ||
Comment 5•16 years ago
|
||
rdf eliminates duplicate uri's; the new folder pane doesn't.
Updated•16 years ago
|
Keywords: regression
Comment 7•16 years ago
|
||
Mozmill test which captures the problem.
Comment 8•16 years ago
|
||
Really disappointing that we have to do this, but...
Attachment #348690 -
Flags: review?(bienvenu)
Assignee | ||
Comment 9•16 years ago
|
||
I know you ignore the c++ part of the code :-), but I would fix this in the code that loads the accounts pref list, to make sure we don't have duplicate accounts. That is, assuming that's the cause of the problem. Perhaps someone who is having this problem could post their prefs.js, or at least, the accounts list pref...
Comment 10•16 years ago
|
||
it isnt a duplicate account problem. I will post my prefs.js
Reporter | ||
Comment 11•16 years ago
|
||
Is this the section you want.
Comment 12•16 years ago
|
||
(In reply to comment #9) > I know you ignore the c++ part of the code :-), but I would fix this in the > code that loads the accounts pref list, to make sure we don't have duplicate > accounts. I probably won't be able to fix this then, and someone else will need to pick this up (unless the fix is "rewrite the account manager in js", an approach I'd fully support, but likely beyond our timeframe).
Assignee: jminta → nobody
Status: ASSIGNED → NEW
Assignee | ||
Comment 13•16 years ago
|
||
Joey, it doesn't look like duplicate accounts is the problem, at least in Joe's prefs, so maybe your patch is the way to go. Joe, can you paste the prefs for the accounts that are duplicated? In particular, the prefs for the servers that correspond to the accounts that are duplicated in the folder pane? Or e-mail them to me. Thx!
Comment 14•16 years ago
|
||
Reporter | ||
Comment 15•16 years ago
|
||
I cleaned up my profile some since I originally filed, but kept the dups for secnews.netscape.com There are 4 displays in the folder pane. email sent subject "Bug 464808 profile data"
Assignee | ||
Comment 16•16 years ago
|
||
so what I see is multiple servers with the same uri - since we identify servers and folders by their uri, it's never going to do anything useful to have multiple accounts/servers with the same uri, either in the backend or the frontend. Since the account manager UI is still using RDF (right?), we will only show one copy of the account/server, but the folder pane will show multiple. Getting rid of duplicates when we load the accounts and create the servers feels like the right thing to do. It makes me nervous to see multiple directories in the profile dir, but I think the first server object/account will always win, so getting rid of the subsequent prefs seems OK. I'm going to try to whip up a patch for this. I'm tentatively marking this as a blocker because we just don't know how many users will run into this.
Flags: blocking-thunderbird3+
Target Milestone: --- → Thunderbird 3.0b1
Assignee | ||
Comment 17•16 years ago
|
||
taking - we may still go with Joey's patch, but I'm going to look at the backend first.
Assignee: nobody → bienvenu
Reporter | ||
Comment 18•16 years ago
|
||
David, sorry if you already know this. I think the condition happens if you delete an account, then re-create it. Also might be related to the fact that if you use user.js to add, let's say a "caps" policy, then later remove the user.js you will then have to manually edit the prefs.js file to remove the policy.
Comment 19•16 years ago
|
||
what do you mean by multiple servers? I have multiple POP accounts on the same pop server (gmail). I only have one directory in my profile directory, though. also, note that I have not deleted and recreated any accounts (at least not since install).
Assignee | ||
Updated•16 years ago
|
Whiteboard: will probably move to b2 since user can cleanup themselves
Comment 20•16 years ago
|
||
i notice on the whiteboard it says users can clean-up themselves... how exactly is this?
Assignee | ||
Comment 21•16 years ago
|
||
you should be able to remove the duplicate accounts in the account settings dialog - it should show you the same list of accounts as the folder pane...
Comment 22•16 years ago
|
||
only that isn't the case. two local folders show up in the account settings dialog, but those are not removable, and they both point to the same director.
Comment 23•16 years ago
|
||
it is not the case, as stated earlier, that the accounts themselves are duplicated.
Assignee | ||
Comment 24•16 years ago
|
||
they're definitely duplicated if they appear in the folder pane and the account settings dialog - by duplicated, I mean you have two accounts with the same uri, not that they're duplicated in the pref account list. So, yeah, I didn't realize you could get this to happen with a local folders account, and since we don't let you remove the local folders account, that is a problem. Thx for the info. I'll leave this on the blocking list, then.
Whiteboard: will probably move to b2 since user can cleanup themselves
Comment 25•16 years ago
|
||
gotcha -- anything you need from me or want me to test, just let me know.
Reporter | ||
Comment 26•16 years ago
|
||
Just to reinforce the need for blocking b1 When deleting my dup feeds account, I lost all the feed info. Yeah, I exported them before I tried, but restoring feeds lost some headers that I was saving that were active, but apparently expired on the server. All in all, it's not trivial to fix dups.
Updated•16 years ago
|
Whiteboard: [bienvenu looking at backend?]
Comment 27•16 years ago
|
||
I have the same sort of issue as is being described here. In the Folders Pane I now have two copies of the Local Folder and all contents of my mail and created folders being displayed. The second Local Folder mirrors actions made in the first but only updates itself once you change to another folder in the original Local Folder. There is also two Local Folders displayed in Account Settings with exact same settings and pointing to the same Local directory. It doesn't appear to be any other changes made nor are there any new or duplicate folders created in my profile directory. All nightly builds after Shredder/3.0b1pre ID:20081112031406 display this problem. If I revert back to this nightly build from any latter nightly builds the Folder pane and account settings go back to normal.
Comment 28•16 years ago
|
||
Comment 29•16 years ago
|
||
Assignee | ||
Comment 30•16 years ago
|
||
This removes accounts without a server, and accounts with a duplicate server. I tested both, and they seemed to work fine (I got an assertion for each, but that's reasonable, I think). We only remove prefs, not anything on disk. Even so, this patch is a wee bit frightening - I'm tempted to go with jminta's UI patch for b1, and land the backend fix for b2, but I'm interested in Standard8 and Neil's thoughts.
Attachment #349686 -
Flags: superreview?(neil)
Attachment #349686 -
Flags: review?(bugzilla)
Comment 31•16 years ago
|
||
when you say accounts with a duplicate server, what does that do to two accounts which both use the same pop server (but with different user names)?
Assignee | ||
Comment 32•16 years ago
|
||
duplicate server means the user name, host name, protocol type, and port are the same.
Updated•16 years ago
|
Attachment #349686 -
Flags: superreview?(neil) → superreview+
Comment 33•16 years ago
|
||
Comment on attachment 349686 [details] [diff] [review] proposed fix [Checkin: Comment 34] I agree this is a wee bit frightening, but it seems the right thing to do. I've just tried this on my non-dev account which has been showing two sets of News & Blogs folders for quite a while, and on startup I got a couple of assertions due to the account manager returning NS_ERROR_FAILURE (which I think should stay, as its clearly an error), but I now only have one News & Blogs set of folders, and they also don't reoccur when I go back to an older version of this patch. So it seems to be working correctly for my case at least. I think we should go with this patch for b1 (though stick a warning in a blog/newsgroup possibly), and keep a close eye on new bugs/feedback during the testing phase.
Attachment #349686 -
Flags: review?(bugzilla) → review+
Updated•16 years ago
|
Whiteboard: [bienvenu looking at backend?] → [bienvenu to land patch]
Assignee | ||
Comment 34•16 years ago
|
||
fix checked in - I'll post to the newsgroup.
Assignee | ||
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 35•16 years ago
|
||
Tested with hourly: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081124 Lightning/1.0pre Shredder/3.0b1pre ID:20081124152531 Dup accounts are gone, thanks.
Status: RESOLVED → VERIFIED
Comment 36•16 years ago
|
||
im not sure if this is premature, but it is still here on Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b2pre) Gecko/20081125 Lightning/1.0pre Shredder/3.0b1pre has the patch been added in to the nightlies yet?
Assignee | ||
Comment 37•16 years ago
|
||
yes, the fix should be in that build. So your problem is slightly different from what other people have been seeing - in your case, both account1 and account3 claim to have server1. If you go into options | advanced, config editor, and just clear account3.server, your problem should go away. I'll file a new bug for your specific issue.
Assignee | ||
Comment 38•16 years ago
|
||
Bug 466660 filed for that particular issue. I don't think I'll be able to fix it before the code freeze, but I'll have a quick try.
Whiteboard: [bienvenu to land patch]
Comment 39•16 years ago
|
||
clicking reset on that value worked. Should I actually delete the key? or just leave it reset to nothing?
Assignee | ||
Comment 40•16 years ago
|
||
either should work - deleting the key should be better in the sense that you have less cruft in prefs.js
Assignee | ||
Updated•16 years ago
|
Attachment #348690 -
Flags: review?(bienvenu)
Assignee | ||
Comment 41•16 years ago
|
||
Comment on attachment 348690 [details] [diff] [review] patch clearing review request for now - we really don't want to have to do this.
Comment 43•16 years ago
|
||
FYI: Here this patch broke composing mails in my SeaMonkey build (the From: select box is empty). I filed Bug 466980 for this, but the problem was probably that I somehow ended up with two different serverX entries for Local Folders, which pointed to different locations, but the current entry was not associated with an account. Relevant info in that bug is probably in Comment 2, 3 and 4. As I'm not really sure that I did not mess around with my mail prefs once, that bug is probably invalid.
Reporter | ||
Comment 44•16 years ago
|
||
This appears to have caused a regression with some testers: http://forums.mozillazine.org/viewtopic.php?f=29&t=970105 http://forums.mozillazine.org/viewtopic.php?f=29&t=965715 Not reopening this bug for now, but no new bug has been filed yet.
Comment 45•16 years ago
|
||
Comment on attachment 348683 [details] [diff] [review] mozmill test This fails with an exception in createLocalMailAccount - NS_ERROR_FAILURE.
Attachment #348683 -
Flags: review?(bugzilla) → review-
Updated•16 years ago
|
Flags: in-testsuite?
Comment 46•16 years ago
|
||
This FIXED bug is flagged with in‑testsuite? It would be great if assignee or someone else can clear the flag if a test is not appropriate. And if appropriate, create a test and plus the flag to finish off the bug.
Updated•15 years ago
|
Attachment #349686 -
Attachment description: proposed fix → proposed fix
[Checkin: Comment 34]
Updated•15 years ago
|
Attachment #348690 -
Attachment is obsolete: true
Updated•9 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•