[jitsi-users] External Contacts


#1

Hi there,

it seems that currently neither Google Contacts nor Thunderbird Contacts
are working if set as External Contact Source in the options. The Google
Contacts-Problem is already known under issue #129, but the non-working
thunderbird integration is not mentioned yet.

Can anyone confirm that Thunderbird 38 and Jitsi 2.8.5426 are not
communicating at the moment?

Also: Neither problem has been indicated in a satisfactory error message
to the user - instead, no address entries are found. This should be
changed in the future as well.

I'd like to open two issues for that, if confirmed.

Best Regards,
Lars


#2

it seems that currently neither Google Contacts nor Thunderbird Contacts
are working if set as External Contact Source in the options. The Google
Contacts-Problem is already known under issue #129, but the non-working
thunderbird integration is not mentioned yet.

Can anyone confirm that Thunderbird 38 and Jitsi 2.8.5426 are not
communicating at the moment?

My Thunderbird was just updating from 17 to 38 ... didn't seem that long ago
since I wrote the address book plugin for Jitsi. But it still works. And it
most likely will until Thunderbird completely switches to a different
database.

A look at your logs [1] might help, but I'm not very keen on working on Mork
[2] again. An idea could be to export all your contacts, create a new address
book and then import them again. This way you'd create a new, cleaner database
freed from old baggage that accumulated over time.

Also: Neither problem has been indicated in a satisfactory error message
to the user - instead, no address entries are found. This should be
changed in the future as well.

Ahm, yeah. Problem is: how to show this error message in a non-obtrusive way?
We can't show an error pop every time a contact search failed. Remember that
the address books aren't only queried from the main window, but also from call
and chat invite dialogs, call forwarding, etc. Any ideas for that are welcome.

I'd like to open two issues for that, if confirmed.

Please wait until I had a look at logs.

Best Regards,
Lars

Ingo


#3

Forgot the links:

[1] https://jitsi.org/logs
[2] https://wiki.mozilla.org/Address_Book


#4

Hi Ingo,

thanks for answering and for writing the plugin in the first place.

it seems that currently neither Google Contacts nor Thunderbird Contacts
are working if set as External Contact Source in the options. The Google
Contacts-Problem is already known under issue #129, but the non-working
thunderbird integration is not mentioned yet.

Can anyone confirm that Thunderbird 38 and Jitsi 2.8.5426 are not
communicating at the moment?

A look at your logs [1] might help, but I'm not very keen on working on Mork
[2] again. An idea could be to export all your contacts, create a new address
book and then import them again. This way you'd create a new, cleaner database
freed from old baggage that accumulated over time.

Exporting and Re-Importing did the trick. I used gContactSync[1] to sync
my addressbook from googlemail, since the GMail-Provider of Jitsi
stopped working a few months ago when OAuth1 was deprecated. So the
error is with gContactSync I suppose.

I will have to manually sync every now and then but I can use Jitsi
again - thanks for that!

The important part of the log-file is this error message when trying to
search for "Sarah" (repeated 5 times):
10:02:24.206 WARNUNG: [102]
plugin.thunderbird.ThunderbirdContactQuery.run().147 Could not parse
[...]\abook-1.mab
java.lang.RuntimeException: Dictionary could not dereference key: ^0 in
scope COLUMN_SCOPE
    at mork.Dict.dereference(Dict.java:197)
    at mork.Aliases.parseSingleAlias(Aliases.java:117)
    at mork.Aliases.<init>(Aliases.java:72)
    at mork.Row.<init>(Row.java:64)
    at mork.Table.<init>(Table.java:100)
    at mork.MorkDocument.onEvent(MorkDocument.java:64)
    at mork.MorkParser.fireEvent(MorkParser.java:73)
    at mork.MorkParser.parseTable(MorkParser.java:298)
    at mork.MorkParser.parseMain(MorkParser.java:163)
    at mork.MorkParser.parse(MorkParser.java:131)
    at mork.MorkDocument.<init>(MorkDocument.java:42)
    at mork.MorkDocument.<init>(MorkDocument.java:33)
    at
net.java.sip.communicator.plugin.thunderbird.ThunderbirdContactQuery.run(ThunderbirdContactQuery.java:61)
    at
net.java.sip.communicator.service.contactsource.AsyncContactQuery$1.run(AsyncContactQuery.java:314)

Also: Neither problem has been indicated in a satisfactory error message
to the user - instead, no address entries are found. This should be
changed in the future as well.

Ahm, yeah. Problem is: how to show this error message in a non-obtrusive way?
We can't show an error pop every time a contact search failed. Remember that
the address books aren't only queried from the main window, but also from call
and chat invite dialogs, call forwarding, etc. Any ideas for that are welcome.

I don't have time to look into the source at the moment, but from the
Exception I'd guess that it would show up immediately when trying to
parse the file - in that case Jitsi could try to do exactly that when
the user adds the addressbook in the options-dialog and present and
error message if it's unparsable. That way you would not have the
problem of multiple dialogs, which I'd still recommend doing if an
Exception is thrown due to a parse error, since some plugins seem to
corrupt the addressbook.
If you want to go the extra-length, a warning could be presented, if the
file seems to be parsable but no contacts were found.

Best,
Lars

···

Am 14.07.2015 um 22:24 schrieb Ingo Bauersachs:

_________________________________

[1] https://addons.mozilla.org/En-us/thunderbird/addon/gcontactsync/