Selected LDAP directory server preference becomes de-selected
Categories
(MailNews Core :: LDAP Integration, defect, P2)
Tracking
(thunderbird_esr6868+ fixed, thunderbird69 fixed, thunderbird70 fixed)
People
(Reporter: MabryTyson, Assigned: aleca)
References
Details
(Keywords: regression)
Attachments
(1 file, 2 obsolete files)
|
5.92 KB,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Firefox/60.0
Steps to reproduce:
In TB 60.8.0, 68.0, or 69.0
go to Preferences > Composition > Addressing.
If you don't already have a directory server, create one and make sure it is selected (both checked & selected) (It probably can be a fake one as this doesn't require actual LDAP service)
Now click on Edit Directories. This brings up a window to edit properties. Make sure the window isn't blocking your view of the Preferences window that shows the selected directory server.
With or without making any changes, click OK in the edit properties pop-up.
Actual results:
When I click OK, the selected directory server is deselected and no directory server is selected.
Expected results:
The selected directory server shouldn't get deselected. If it must be (for reasons I don't understand), then please alert the user he should reselect it. Otherwise the user will likely not notice this happened and will get confused when his LDAP directory isn't working.
I'm going to call this a defect but it is a minor one. It is an annoyance and not what I expect you want.
Comment 1•7 years ago
|
||
Confirmed. Should be easy to fix. Aceman, can you take a look.
Comment 2•7 years ago
|
||
Actually, I can't see the menulist being lost in TB 60.
A bit of research: The pref shown in the field is this:
https://searchfox.org/comm-central/search?q=ldap_2.autoComplete.directoryServer&case=false®exp=false&path=
"Edit directories" runs gComposePane.editDirectories(). Code here:
https://searchfox.org/comm-central/source/mailnews/addrbook/prefs/content
I think this is a de-XBL issue in
https://searchfox.org/comm-central/source/mail/components/addrbook/content/menulist-addrbooks.js
I'll blame it on the original author ;-)
Comment 3•7 years ago
•
|
||
Certainly not happening in TB 60. There, if you edit a server name and that server is selected, the display changes accordingly instead of being deselected.
EDIT: And BTW, deselected/empty is not a valid value. If anything, it should be None. So I'm wondering whether it's just a display glitch.
| Assignee | ||
Comment 4•7 years ago
|
||
Confirmed, it happens on 68 and 69.
Most likely my fault, I'll deal with it.
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
| Assignee | ||
Comment 5•7 years ago
|
||
This should fix also bug 1574712.
So, during the de-xbl bug, I overlooked the fact that the menulist value would change and not return anymore "URI" or "dirPrefId", which are the 2 directory types we need in order to properly build the list with names and correct values.
Take a look at what I did and if it makes sense as a solution.
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
| Assignee | ||
Comment 8•7 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #6)
get _value() { return this.getAttribute("value") || "URI";Why the || "URI"?
Argh, that's a leftover.
Maybe at this point the entire getter method can be removed.
I'll fix it.
Comment 9•7 years ago
|
||
Perfect green try, even bct passed.
| Assignee | ||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
| Assignee | ||
Comment 13•7 years ago
|
||
Patch updated to use the remoteonly attribute instead of adding a new one.
I decided to leave the _type() getter as it makes things easier, and added a comment there.
I didn't use the built-in match() method because that's strictly used to add/remove items from the list based on the remoteonly attribute.
This is a bit messed up because address lists are not used consistently across the platform. Example:
In the Address Book or Messenger Compose window
The full list is showed with always the local "URI" value, even for LDAP directories
- moz-abmdbdirectory://abook.mab
- moz-abldapdirectory://ldap_2.servers.Adams
- etc...
In the Preferences > Composition
Only the LDAP directories are showed, using the "dirPrefId" value
- ldap_2.servers.Test
- ldap_2.servers.Adams
- etc...
So, even if the Address Book Object itself has an attribute called isRemote, that doesn't mean we can use it to always return the "dirPrefId" value, because sometimes we need the "URI" even if it's a remote LDAP directory.
I hope what I wrote makes sense.
| Assignee | ||
Updated•7 years ago
|
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
20:25:02 - jorgk: aleca: Another tweak to the LDAP thing?
20:26:28 - aleca: jorgk, we can think about that in a follow up bug
Updated•7 years ago
|
Updated•7 years ago
|
Comment 16•7 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/eb47af85ed8e
Change MozMenulistAddrbooks CE to fix LDAP auto-complete and LDAP server pref. r=mkmelin
Comment 17•7 years ago
|
||
TB 69 beta 4:
https://hg.mozilla.org/releases/comm-beta/rev/1e92fa2aab3f6481a1e2f28a4cce11370328a2a6
Comment 18•7 years ago
|
||
Description
•