Closed Bug 81695 Opened 24 years ago Closed 24 years ago

selected entry in autocompletion box doesn't hold the value

Categories

(SeaMonkey :: MailNews: Address Book & Contacts, defect, P2)

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: yulian, Assigned: hewitt)

References

Details

(Keywords: dataloss, Whiteboard: hitchhiker, warning: cause regression!)

Attachments

(1 file)

The selected entry in autocompletion box doesn't hold the value in the compose window when the the focus moves to the second addressee. 1. In compose window, type in "yu" 2. a list of matching entries displays in the autocompletion box 3. click one of them, for example, yulian@netscape.com 4. "yulian@netscape.com" is now displayed in the first entry of address area in the compose window 5. click on the second entry of addressee 6. "yulian@netscape.com" in the first entry becomes "yu@netscape.com"
QA Contact: esther → yulian
It finally displays whatever you type in. Doesn't honor the selection.
wfm on MacOS 2001052115. However, when I clicked in the 2nd address field and started typing I got a popup that had a scrollbar, but no visible elements.
Brian there is another bug on that. bug# 78771
Win98SE | N6.1 PR 0 (build id: 2001052204) | Prefs: Local (checked) | NSCP LDAP (checked) | Do not look as LDAP if in local (checked) WFM with the above platform/settings ... however, the following occurs: 1. in compose window, type in "yu" 2. a list of matching entries displays in the autocompletion box 3. click yulian@netscape.com 4. "yulian@netscape.com" is now displayed in the first entry of address area in the compose window 5. click on the second entry of addressee 6. "yulian@netscape.com" in the first entry holds "yulian@netscape.com" 7. in second entry of address area, type in "je" 8. blank entries display in the autocompletion box; scroll down menu appears but with blank / hidden entries 9. unable to add additional addresses from local or nscp ldap directories
*** Bug 82163 has been marked as a duplicate of this bug. ***
The following code is from nsAbAutoCompleteSession.cpp: 561 { 562 status = nsIAutoCompleteStatus::matchFound; 563 if (addedDefaultItem) 564 { 565 if (nbrOfItems > 2) 566 results->SetDefaultItemIndex(-1); 567 else 568 results->SetDefaultItemIndex(nbrOfItems == 2 ? 1 : 0); 569 } 570 else 571 results->SetDefaultItemIndex(nbrOfItems > 1 ? -1 : 0); 572 } 573 } Setting the defaultItemIndex to either 1 or 0 is causing this problem. Setting this to -1 would fix it. Since I am not familiar with this code I am not sure if I can do this. ccing ducarroz for input.
Blocks: 17880
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.2
*** Bug 83266 has been marked as a duplicate of this bug. ***
*** Bug 82062 has been marked as a duplicate of this bug. ***
One possible solution to this would be to associate any default value with the XBL autocomplete widget itself rather than the individual autocomplete sessions. hewitt/ducarroz/alecf: any thoughts on this?
*** Bug 84503 has been marked as a duplicate of this bug. ***
I'll add my opinion that this is pretty scary and that if we're going to have ldap autocompletion in 0.9.1 we should fix this in 0.9.1. It's very easy to reproduce and will lead to messages sent to the wrong people.
What I am seeing is that the problem occurs only when we have both addressbook and ldap autocomplete enable. My guess is that we are doing something wrong when we merge the result form both sources. I don't think it's anything to do with the default selection, the user should be able to select whatever he wants disregard the default item. Let me take a look...
This is mine.
Assignee: srilatha → hewitt
Status: ASSIGNED → NEW
I'm able to reproduce with the original steps, I'm pretty sure this is an XBL problem.
Status: NEW → ASSIGNED
i filed the bug # 84391 where it is reproducable when your address is not in Collected Addresses: in case it is not there the autocompletion is not happening; when you do have the address in CA the match is found and remembered
the problem is in autocomplete.xml in the function finishAutoComplete. If we have a default item, we always use it!!!
This problem occurs also when you have only one source!
Joe, why in finishAutoComplete do you set the texbox value to the default search result? you should take whatever the user has selected!
adding dataloss and nsbeta1 keywoards from 84503
Keywords: dataloss, nsbeta1
Attached patch patch to fixSplinter Review
I've just finished to test the patch. Works great. R=ducarroz
Whiteboard: Have fix
I notice that there's work around for this problem for now. Append a space behind the selected name then press Enter. This way will hold. 1. Bring up a new Msg window and type in a name 2. Select a name which comes from LDAP directory 3. press space 4. press enter 5. it hold well on all platforms
Whiteboard: Have fix
per PDT, putting in 0.9.1 and adding hitchhiker to status whiteboard in case of respin. It doesn't go in if there isn't one. we need a super review.
Whiteboard: hitchhiker
Target Milestone: mozilla0.9.2 → mozilla0.9.1
OS: Windows NT → All
*** Bug 84391 has been marked as a duplicate of this bug. ***
sr=sfraser
a= asa@mozilla.org for checkin to the trunk. (on behalf of drivers)
Blocks: 83989
Patch checked into the trunk.
looks like this patch cause a regression! In message compose, when I type a nickname like "jfd", the widget correctly autocomplete to "jfd >> Jean-Francois Ducarroz<ducarroz@netscape.com>" but when I either press return or tab or set the focus in another area, the field is not cleaned up anymore, it should become "Jean-Francois Ducarroz<ducarroz@netscape.com>"! This could cause some send problem. Joe, can you take a look at it?
Whiteboard: hitchhiker → hitchhiker, warning: cause regression!
thanks for landing the patch, dmose. fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Oh crap. regression indeed. I'll fix that and open a separate bug for it in a segundo.
*** Bug 84666 has been marked as a duplicate of this bug. ***
*** Bug 85826 has been marked as a duplicate of this bug. ***
Verified with trunk builds on winds, Linux and MacOS.
Status: RESOLVED → VERIFIED
*** Bug 86617 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: