Thunderbird extension

Discussion about Community Contributions (Applications, Plugins, Import/Export, ...)

Re: Thunderbird extension

Postby joebel » Sun Jan 02, 2011 12:00 am

tinetine wrote:
joebel wrote:- In console:
* Error: status is undefined
Source File: chrome://ttine/content/sync.js
* Error: not well-formed
Source File: moz-nullprincipal:{db2c4c20-39d1-425b-838b-a87d53839b26}
Line: 1, Column: 51410
Mit ein XML bulb mit contact records..
- Nach eine restart: Invalid sync key: resync everything --> yes.
- Reinitialize adress books --> hilft auch nicht --> Dom error: TypeError: aNode is undefinded
- in console:
* Error: An error occurred updating the cmd_delete command: [Exception... "'[JavaScript Error: "cards[i] is null" {file: "chrome://messenger/content/addressbook/abResultsPane.js" line: 158}]' when calling method: [nsIController::isCommandEnabled]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://global/content/globalOverlay.js :: goUpdateCommand :: line 80" data: yes]
Source File: chrome://global/content/globalOverlay.js
Line: 86


Ich verstehe. I'm gonna write this answer in English, 'cause my written German sucks.. If you don't understand, just say, and I'll try to write in German again.
The errors above arose from a Thunderbird installation that also had the lightning and google calendar provider installed.

So now, I used a fresh thunderbird install (and a fresh profile) on a VMware Workstation install of XP, using thundertine as the only add-on. The following happened:
- Dom error: TypeError: aNode is undefinded
- In the error console: Error: An error occurred updating the cmd_delete command: [Exception... "'[JavaScript Error: "cards[i] is null" {file: "chrome://messenger/content/addressbook/abResultsPane.js" line: 158}]' when calling method: [nsIController::isCommandEnabled]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://global/content/globalOverlay.js :: goUpdateCommand :: line 80" data: yes]
- I try to check the folderlist in preferences. Sometime afterwards the error console states: Error: uncaught exception: [Exception... "'This login already exists.' when calling method: [nsILoginManager::addLogin]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: chrome://ttine/content/options.js :: onclose :: line 115" data: no]
- shutdown thunderbird, and start it up again:
- Dom error: TypeError: aNode is undefinded
- error: the server responded: -undefined --> please correct settings
- in preferences: all o.k, again I see the remote contect folders
- latest errors in console:
---1: Error: uncaught exception: [Exception... "'This login already exists.' when calling method: [nsILoginManager::addLogin]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: chrome://ttine/content/options.js :: onclose :: line 115" data: no]
---2: Error: An error occurred updating the cmd_delete command: [Exception... "'[JavaScript Error: "cards[i] is null" {file: "chrome://messenger/content/addressbook/abResultsPane.js" line: 158}]' when calling method: [nsIController::isCommandEnabled]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://global/content/globalOverlay.js :: goUpdateCommand :: line 80" data: yes]
Source File: chrome://global/content/globalOverlay.js
Line: 86

I can assure you: it's a fresh machine, without any thunderbird history whatsoever.


Danke für die Meldung. Da geht aber noch ein bisschen was durcheinander. Die Meldungen beziehen sich nicht alle auf ThunderTine. Hast du eine groupDAV-Extension installiert? (abResultsPane.js, globalOverlay.js kommt nicht von mir)

Bitte bei Fehlermeldungen zuvor ein frisches Thunderbird-Profil anlegen. Ohne weitere Extensions. Sonst komm ich durcheinander ;)

Außerdem bräuchte ich von dir ein Tine 2.0 Log-File mit den XML Daten, die übermittelt werden. aNode klingt, als ob das XML nicht gelesen werden kann. Kannst du das Log hier posten?


For privacy reasons, I feel very uneasy at posting the log with actual contact dat in it over here. Some parts though:
Code: Select all
85b44 my name - 2011-01-01T21:45:12+00:00 DEBUG (7): ActiveSync_Frontend_Http::handlePost::104 Agent: ThunderTine ActiveSync       PolicyKey:  ASVersion: 2.5 Command: Sync
85b44 my name - 2011-01-01T21:45:12+00:00 DEBUG (7): ActiveSync_Frontend_Http::handlePost::116 class name: ActiveSync_Command_Sync 85b44 Vromen, Roel - 2011-01-01T21:45:12+00:00 DEBUG (7): ActiveSync_Command_Wbxml::__construct::95 decoded wbxml content: <?xml        version="1.0" encoding="utf-8"?>
<!DOCTYPE AirSync PUBLIC "-//AIRSYNC//DTD AirSync//EN" "http://www.microsoft.com/">
<Sync xmlns="uri:AirSync"><Collections><Collection><Class>Contacts</Class><SyncKey>1</SyncKey><CollectionId>15</                        CollectionId><GetChanges/></Collection></Collections></Sync>
85b44 my name - 2011-01-01T21:45:12+00:00 DEBUG (7): ActiveSync_Command_Wbxml::__construct::101 sync timestamp: 2011-01-01 21:45:12
85b44 my name - 2011-01-01T21:45:12+00:00 INFO (6): ActiveSync_Command_Sync::handle::198 SyncKey is 1 Class: Contacts              CollectionId: 15
85b44 my name- 2011-01-01T21:45:12+00:00 DEBUG (7): ActiveSync_Command_Sync::handle::208
85b44 my name- 2011-01-01T21:45:12+00:00 DEBUG (7): Tinebase_Config::getConfig::103 Config setting "mapPanel" not found, using    default (1).
85b44 my name - 2011-01-01T21:45:12+00:00 DEBUG (7): ActiveSync_Command_Sync::handle::212
85b44 my name- 2011-01-01T21:45:12+00:00 DEBUG (7): ActiveSync_Command_Sync::handle::306
85b44 my name - 2011-01-01T21:45:12+00:00 DEBUG (7): ActiveSync_Command_Sync::getResponse::321
85b44 my name- 2011-01-01T21:45:12+00:00 INFO (6): ActiveSync_Command_Sync::getResponse::483 found (added/changed/deleted) 72/0/0 entries for sync from server to client
85b44my name- 2011-01-01T21:45:12+00:00 DEBUG (7): Tinebase_Relations::getRelations::153  model: 'Addressbook_Model_Contact'     backend: 'Sql'
85b44my name - 2011-01-01T21:45:12+00:00 DEBUG (7): Tinebase_Relations::getRelations::153  model: 'Addressbook_Model_Contact'     backend: 'Sql'
etc. etc.
85b44 my name- 2011-01-01T21:45:18+00:00 INFO (6): ActiveSync_Command_Sync::getResponse::571 new synckey is 2
85b44 my name - 2011-01-01T21:45:18+00:00 DEBUG (7): ActiveSync_Command_Sync::getResponse::583
85b44 my name - 2011-01-01T21:45:18+00:00 DEBUG (7): ActiveSync_Controller::updateSyncKey::290 update synckey to 2
85b44 my name- 2011-01-01T21:45:18+00:00 DEBUG (7): ActiveSync_Command_Sync::getResponse::598
85b44 my name- 2011-01-01T21:45:19+00:00 DEBUG (7): ActiveSync_Command_Wbxml::getResponse::129 <?xml version="1.0" encoding="utf- 8"?>
<!DOCTYPE AirSync PUBLIC "-//AIRSYNC//DTD AirSync//EN" "http://www.microsoft.com/">
<Sync xmlns="uri:AirSync" xmlns:Contacts="uri:Contacts" xmlns:Tasks="uri:Tasks" xmlns:Email="uri:Email" xmlns:Calendar="uri:Calendar"   xmlns:AirSyncBase="uri:AirSyncBase"><Collections><Collection><Class>Contacts</Class><SyncKey>2</SyncKey><CollectionId>15</              CollectionId><Status>1</Status><Commands><Add><ServerId>103</ServerId><ApplicationData><Contacts:BusinessCity xmlns="uri:Contacts"> WHOLE TRUCKLOAD OF CONTACTDATA IN WHAT SEEMS CORRECT FIELDS ...
85b44 my name - 2011-01-01T21:45:20+00:00 INFO (6): index.php (68) TIME: 8.2176029682159 seconds 15.75 MBytes
joebel
Tine 2.0 Community Contributor
 
Posts: 38
Joined: Mon Jun 22, 2009 7:19 am

Re: Thunderbird extension

Postby bcs-luggi » Sun Jan 02, 2011 12:19 pm

Servus,

ich habe folgendes gemacht:

1. In Tine alle Adressen gelöscht
2. Mit Ttine neu gesynct, alles ok.
3. Bei noch geöffnetem TB nochmal gesynct, alles o.k.=Trace-02.log
4. TB geschlossen und wieder geöffnet, Pfade neu eingestellt, gesynct bis Fehlermeldung Dom error =Trace-03.log und TB Fehlerkonsole.txt

Die Trace-03.log ist nur ein Ausschnitt. Ich habe den ersten und letzten Kontakt den er übertragen hat drin gelassen, die anderen sind gelöscht. Warum überträgt er die eigentlich nochmal (Es waren doch einige)? Ich habe nichts geändert.

Das mit dem Dom Error gabs früher schon mal, war dann zwischenzeitlich weg und kommt erst wieder seit das "Theater" mit den Verzeichnissen vorhanden ist :?: :?: :?:
Bert
Last edited by bcs-luggi on Sun Jan 02, 2011 6:34 pm, edited 2 times in total.
bcs-luggi
 
Posts: 229
Joined: Fri Aug 06, 2010 8:18 am

Re: Thunderbird extension

Postby tinetine » Sun Jan 02, 2011 6:21 pm

bcs-luggi wrote:Das mit dem Dom Error gabs früher schon mal, war denn zwischenzeitlich weg und kommt erst wieder seit das "Theater" mit den Verzeichnissen vorhanden ist :?: :?: :?:
Bert


Danke, ich habe deine Anhänge runtergeladen. Vielleicht löschst du sie wieder aus dem Forum. Braucht ja sonst keiner die Daten ;)

Ich forsch in die Richtung mal.

@joebel: YES, please write in english. I'll answer in german but that you understand, obvisously. If you don't want to post data in public but you don't care to make it known to me, send it as pm.
User avatar
tinetine
Tine 2.0 Community Contributor
 
Posts: 94
Joined: Sun Feb 28, 2010 8:54 pm

Re: Thunderbird extension

Postby tinetine » Sun Jan 02, 2011 8:29 pm

Zunächst mal Danke an bcs-luggi für deine Hilfe und Geduld! Dein Trace-03 hat mich auf eine Spur gebracht. Da aber gerade zwei Probleme aktuell sind, DOM-Error und nicht gespeicherte Config, weiß ich nicht, ob es nun bei euch läuft. Ich konnte in deiner Datei ein Problem sehen: Es wurde immer nur das erste verbotene &-Zeichen ersetzt (genauso bei "<" und ">") und nicht alle. Das XML war kaputt, weil du eine Firma "E&B GmbH&Co KG" hattest. :o

Dazu kamen meine mangelnden JavaScript-Kenntnisse, ich wusste bis heute nicht, dass man regular expressions in JS nicht in Anführungszeichen schreibt... :oops:

Revision 18236 ist hochgeladen, bitte probiert es aus und ich freu mich über feedback.

Sorry für die unprofessionelle Vorgehensweise!!
User avatar
tinetine
Tine 2.0 Community Contributor
 
Posts: 94
Joined: Sun Feb 28, 2010 8:54 pm

Re: Thunderbird extension

Postby joebel » Mon Jan 03, 2011 9:24 am

tinetine wrote:Zunächst mal Danke an bcs-luggi für deine Hilfe und Geduld! Dein Trace-03 hat mich auf eine Spur gebracht. Da aber gerade zwei Probleme aktuell sind, DOM-Error und nicht gespeicherte Config, weiß ich nicht, ob es nun bei euch läuft. Ich konnte in deiner Datei ein Problem sehen: Es wurde immer nur das erste verbotene &-Zeichen ersetzt (genauso bei "<" und ">") und nicht alle. Das XML war kaputt, weil du eine Firma "E&B GmbH&Co KG" hattest. :o

Dazu kamen meine mangelnden JavaScript-Kenntnisse, ich wusste bis heute nicht, dass man regular expressions in JS nicht in Anführungszeichen schreibt... :oops:

Revision 18236 ist hochgeladen, bitte probiert es aus und ich freu mich über feedback.

Sorry für die unprofessionelle Vorgehensweise!!


- Du kuemmerst Dich om deine software und uns: dass ist professionell.
- Revision 18236: funktioniert !!!
- jetzt sehe ich eine fehlermeldung, so ungefaer wie server tries to change contact_home2phonenumber: thunderbird doesnt have this field.

Danke fuer die Hilfe!
joebel
Tine 2.0 Community Contributor
 
Posts: 38
Joined: Mon Jun 22, 2009 7:19 am

Re: Thunderbird extension

Postby bcs-luggi » Mon Jan 03, 2011 12:48 pm

tinetine wrote:Zunächst mal Danke an bcs-luggi
Danke für die Blumen, aber dafür ist doch so ein Forum da...
Eher danke an Dich das Du am Ball bleibst.

tinetine wrote:Revision 18236 ist hochgeladen, bitte probiert es aus und ich freu mich über feedback.
Ich werd's testen sobald ich zuhause bin. (Tja der Arbeitsaltag hat uns wieder :D )

tinetine wrote:Sorry für die unprofessionelle Vorgehensweise!!
Da kann ich mich nur anschließen, was ist daran unprofessionell wenn Du Dich kümmerst? Wir machen das alle doch "nur" als Hobby...
bcs-luggi
 
Posts: 229
Joined: Fri Aug 06, 2010 8:18 am

Re: Thunderbird extension

Postby joebel » Mon Jan 03, 2011 4:48 pm

2 point of feedback:

- using 2 instances of thunderbird on different machines, both with tundertine: in the address book on the second machine, even after reinitializing the address book, it only syncs the changes made in the tine20 webinterface since the previous sync of thundertine on the first machine. It seems like it considers both instances of thundertine as the same activesync device... --> the second instance of thunderbird is unable to obtain the full list of contacts.

- it seems like I can sync only one thunderbird addressbook with one tine20 address book. I have several tine20 address books. Useful could be on of the following options:
1: create functionality to sync several thunderbird address books, each with one tine20 address book.
2: sync a thunderbird address book in the same way my palm pre does: with a tine20 favorite (in my case: all contacts).

That notwithstanding: great plugin!
joebel
Tine 2.0 Community Contributor
 
Posts: 38
Joined: Mon Jun 22, 2009 7:19 am

Re: Thunderbird extension

Postby kaystrobach » Mon Jan 03, 2011 5:17 pm

That means we need a unique id for every Thunderbird instance.

regards kay
http://www.kay-strobach.de - Open Source Rocks
User avatar
kaystrobach
Tine 2.0 Community Contributor
 
Posts: 460
Joined: Sat Jan 02, 2010 1:06 pm
Location: Germany

Re: Thunderbird extension

Postby tinetine » Mon Jan 03, 2011 10:29 pm

joebel wrote: It seems like it considers both instances of thundertine as the same activesync device...


Was steht bei dir im about:config (Einstellungen->Erweitert->Allgemein->Konfiguration bearbeiten...) unter extensions.ttine.deviceId? Ist die in beiden Thunderbirds identisch?
User avatar
tinetine
Tine 2.0 Community Contributor
 
Posts: 94
Joined: Sun Feb 28, 2010 8:54 pm

Re: Thunderbird extension

Postby joebel » Tue Jan 04, 2011 8:33 am

tinetine wrote:
joebel wrote: It seems like it considers both instances of thundertine as the same activesync device...


Was steht bei dir im about:config (Einstellungen->Erweitert->Allgemein->Konfiguration bearbeiten...) unter extensions.ttine.deviceId? Ist die in beiden Thunderbirds identisch?



The deviceids differ, and both have different entries in the tine20_acsync_device table. Yet I find that one ttine(1) instance has the initial set of contacts, while another ttine(2) instance only had the contact added since the ttine(1) synced. When I Sync ttine(1) again, I don't get the added contact.

Edit: this might help

Because I have different address books, I had the same tine20 address book first connected to 1 thunderbird addressbook, and later to another thunderbird addressbook, all on ttine(1). Since then, ttine(2) only detects changes that happen after that sync change in ttine(1). If I reverse the addressbookchange setting in ttine(1): no budge. --> "the server responded: Object not found".

I'll see If I can fix this. Sorry, I seem to have some trouble using the plugin with different address books.

Edit: Fixed it. Seem to have been a problem managing the different address-books. --> A way to sync to a favorite like "all contacts" would really be helpful for these matters.
Last edited by joebel on Tue Jan 04, 2011 6:06 pm, edited 1 time in total.
joebel
Tine 2.0 Community Contributor
 
Posts: 38
Joined: Mon Jun 22, 2009 7:19 am

PreviousNext

Return to Community Contributions

Who is online

Users browsing this forum: No registered users and 0 guests

cron
Startseite
NewsDemoDownloadForumWikiBlog
Support
Support at first hand!
If the forum does not help anymore ... Professional support is available directly from our Tine2.0 core Developers.

more »