Javascript component does not have a method named: "getBinaryValues" when calling method: [nsILDAPMessage::getBinaryValues]
Categories
(MailNews Core :: LDAP Integration, defect)
Tracking
(thunderbird_esr78 unaffected, thunderbird91 fixed)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | unaffected |
thunderbird91 | --- | fixed |
People
(Reporter: cmgaudry33, Assigned: rnons)
References
(Regression)
Details
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
Hi,
I'm trying to migrate all my customization from Thunderbird 78 to Thunderbird 91 but I got an issue with the nsILDAPMessage::getBinaryValues method.
While processing the aMessage object, if I call the getBinaryValues I got the following exception :
17:20:41:490 [ERROR] [XXXXXXXXXX] [certFetchingStatusOverride.js] onLDAPMessage(?) throws exception [Exception... "JavaScript component does not have a method named: "getBinaryValues"'JavaScript component does not have a method named: "getBinaryValues"' when calling method: [nsILDAPMessage::getBinaryValues]" nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: "JS frame :: chrome://messenger-smime/content/certFetchingStatus.js :: ldapMessageListener.prototype.onLDAPMessage :: line 288" data: no]
ldapMessageListener.prototype.onLDAPMessage@chrome://messenger-smime/content/certFetchingStatus.js:288:69
searchExt/this._messageId<@resource:///modules/LDAPOperation.jsm:76:26
_onData@resource:///modules/LDAPClient.jsm:169:17
fetchMissingCertificates@chrome://XXXXXXXXXX/content/messenger-smime/msgCompSecurityInfoOverlay.js:136:13
onLoad@chrome://XXXXXXXXXX/content/messenger-smime/msgCompSecurityInfoOverlay.js:52:2
onload@chrome://messenger-smime/content/msgCompSecurityInfo.xhtml:1:1
showMessageComposeSecurityStatus@chrome://messenger/content/messengercompose/MsgComposeCommands.js:1808:12
onSecurityChoice@chrome://messenger/content/messengercompose/MsgComposeCommands.js:4354:7
oncommand@chrome://messenger/content/messengercompose/messengercompose.xhtml:1:17
Some traces tell me that :
- the aMessage object has the nsILDAPMessage interface ;
- the aMessage object has a "userCertificate;binary" attribute (the only one) ;
- the aMessage object has a function named "getBinaryValues" ;
But when I call aMessage.getBinaryValues("userCertificate;binary") I get this exception.
My code is working great with Thunderbird 78.12.0 and 88.0b1, but not in 91.0b1.
After comparing some source code (into comm/ldap/xpcom), I really don't understand what is happening with this beta version.
Thanks in advance to have a look to this issue.
Regards,
Chris
Assignee | ||
Comment 1•4 years ago
|
||
Hi Chris, ldap was rewritten in JS in bug 1696625. I missed out the getBinaryValues
function, will fix it this week.
Reporter | ||
Comment 2•4 years ago
|
||
Hi,
Thank you so much.
I saw all new modules and I think something is missing in the LDAPOperation.jsm module.
Assignee | ||
Comment 3•4 years ago
|
||
nsILDAPMessage.getBinaryValues can be used to get values of binary attributes.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/79b547ca2cfa
Implement getBinaryValues in callback of searchExt in LDAPOperation.jsm. r=darktrojan
Assignee | ||
Comment 5•4 years ago
|
||
Because AbLDAPAttributeMap.jsm uses lowercased attribute name to get attribute value.
Assignee | ||
Comment 7•4 years ago
|
||
Comment on attachment 9232564 [details]
Bug 1720917 - Return lowercased attribute name in searchExt in LDAPOperation.jsm. r=darktrojan
[Approval Request Comment]
Request for uplifting two patches.
The first patch fixed a missing getBinaryValues
interface. The second patch fixed LDAP attribute name, so that attributes are correctly mapped to address book contact properties.
Comment 8•4 years ago
|
||
Comment on attachment 9232564 [details]
Bug 1720917 - Return lowercased attribute name in searchExt in LDAPOperation.jsm. r=darktrojan
[Triage Comment]
Approved for beta
Comment 9•4 years ago
|
||
bugherder uplift |
Reporter | ||
Comment 10•4 years ago
•
|
||
Description
•