Ok I guess it might be good to use the bug tracker for bugreports therefore I stop spamming the forum. ;)
If I have at least 1 entry in my Thunderbird addressbook msynctool completes successfully but no entry is written to the addressbook.
I just get tons of:
mozilla_sync_commit_change(404): Modifying card [514]
mozilla_sync_commit_change(420): <?xml version="1.0"?>
<contact>
<Birthday>
<Content>19851128</Content>
</Birthday>
<Name>
<LastName>xxx</LastName>
<FirstName>xxx</FirstName>
</Name>
<Telephone Type="Cellular">
<Content>00000000000</Content>
</Telephone>
</contact>
Modifying card [514]
mozilla_sync_commit_change(442) **** ModifyCardFromXML(331): Could not find card with key [514] in Thunderbird Address-book
Logged In: YES
user_id=1662541
Originator: NO
Please try to run libopensync-plugin-mozilla/tests/blackbox_test_001.sh
and post the results here.
blackbox_test_001.sh output
Logged In: YES
user_id=1941911
Originator: YES
After doing:
Index: blackbox_test_001.sh
===================================================================
--- blackbox_test_001.sh (Revision 30)
+++ blackbox_test_001.sh (Arbeitskopie)
@@ -44,7 +44,7 @@
<?xml version="1.0"?>
<config>
<thunderbird-addressbook>
- <gre-directory>/usr/lib/thunderbird-2.0.0.6</gre-directory>
+ <gre-directory>/opt/thunderbird/lib/thunderbird-2.0.0.6</gre-directory>
<profile-directory>${MY_TBIRD_DIR}</profile-directory>
<addressbook-file>abook.mab</addressbook-file>
</thunderbird-addressbook>
I got the output as attached.
File Added: blackbox_test_001.log
Logged In: YES
user_id=1662541
Originator: NO
The reason blackbox_test_001.sh fails is, that file-sync reports the files in different order.
So this is actually a fault in blackbox_test_001.sh, but as far as I can see, cards where added to the address book.
blackbox_test_001.sh needs to be fixed, of course, but nothing to indicate a problem with the plugin itself.
The fact that you get ModifyCardFromXML(331) reported in the initial bug suggests that the database of the OpenSync group are out of sync with the datasources. This can happen eg. if the abook.mab is manually overwritten.
Please either create a new group, or run osyncdump <groupname> --reset,
and try the sync again.
If it still does not work, try to un-comment the commits in thunderbird-card.cpp line 552 and 560.
If you still have problems, please post the output of msynctool run (you can delete your personal info, of course).
Logged In: YES
user_id=1941911
Originator: YES
Just for the record disussion about this issue is at http://sourceforge.net/mailarchive/forum.php?thread_name=474C0B23.2080205%40users.sourceforge.net&forum_name=opensync-devel