Summary | Infinite loop expanding containers |
Queue | IMP |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | slusarz (at) horde (dot) org |
Requester | jan (at) horde (dot) org |
Created | 04/04/2012 (4844 days ago) |
Due | |
Updated | 08/29/2012 (4697 days ago) |
Assigned | 04/04/2012 (4844 days ago) |
Resolved | 05/24/2012 (4794 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
commit d7d183e0caad77bc3df1696b646e0c12cbb0b1a4
Author: Michael M Slusarz <slusarz@horde.org>
Date: Wed Apr 4 16:04:17 2012 -0600
Bug #11128: Dynamic view folder tree fixesimp/js/dimpbase.js | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
http://git.horde.org/horde-git/-/commit/d7d183e0caad77bc3df1696b646e0c12cbb0b1a4
view since it doesn't have any non-special children.
subscribed special folders. I agree it shouldn't show up at all in
the first place.
containers (meaning containers that only contain special mailboxes).
For example, if you subsequently add a mailbox to this container, it
won't appear until the tree is rebuilt. And if you delete this
mailbox, the container won't be destroyed.
Doing the latter, I can end up in the situation where we have just the
container. But opening the container does not cause an infinite loop
- it only calls listMailboxes once.
I don't think having an unsubscribed mailbox should change things,
since the Tree code is not normally aware this mailbox ever exists.
container doesn't appear in dynamic view.
correctly. I might have to go back and give it a second look.
dynamic view since it doesn't have any non-special children.
subscribed special folders. I agree it shouldn't show up at all in the
first place.
the container doesn't appear in dynamic view.
view since it doesn't have any non-special children.
Sure enough, if I create a container with only special mailboxes, the
container doesn't appear in dynamic view.
some other strange behavior.
commit d7d183e0caad77bc3df1696b646e0c12cbb0b1a4
Author: Michael M Slusarz <slusarz@horde.org>
Date: Wed Apr 4 16:04:17 2012 -0600
Bug #11128: Dynamic view folder tree fixesimp/js/dimpbase.js | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
http://git.horde.org/horde-git/-/commit/d7d183e0caad77bc3df1696b646e0c12cbb0b1a4
New Attachment: bug11128.png
State ⇒ Feedback
better? I have tested with these, and could not reproduce with either:
+ A (container)
+ B (container)
+ C (mailbox)
+ A (container)
+ B (mailbox)
+ C (mailbox)
Milestone ⇒
State ⇒ Assigned
Patch ⇒ No
Assigned to Michael Slusarz
Queue ⇒ IMP
Summary ⇒ Infinite loop expanding containers
Type ⇒ Bug
Priority ⇒ 2. Medium
Expanding that folder gets the javascript into an infinite loop:
_listFolders()dimpbase.js (Zeile 2930)
params = Object { all=0, base=li#fldSU5CT1guc2VudA.container, mboxes=[1]}
_toggleSubFolder()dimpbase.js (Zeile 2878)
base = li#fldSU5CT1guc2VudA.container
mode = "tog"
noeffect = false
noexpand = true
_folderLoadCallback()dimpbase.js (Zeile 2792)
params = Object { all=0, base=li#fldSU5CT1guc2VudA.container,
mboxes="["SU5CT1guc2VudA"]", mehr...}
r = Object { response={...}, msgs=[0]}
bind()prototype.js (Zeile 391)
doActionComplete()dimpcore.js (Zeile 135)
request = klass { request=klass, transport=XMLHttpRequest,
readyState=4, mehr...}
callback = function()
onComplete()dimpcore.js (Zeile 70)
t = klass { request=klass, transport=XMLHttpRequest, readyState=4, mehr...}
o = null
bind()prototype.js (Zeile 391)
respondToReadyState()prototype.js (Zeile 1615)
readyState = 4
onStateChange()prototype.js (Zeile 1545)
bind()prototype.js (Zeile 391)
In _toggleSubFolder(), "need" contains the "sent" folder that has been
expanded. Folders with sub-folders work just fine.