Android CardDav Problem

Deutsches Benutzerforum

Android CardDav Problem

Postby CreaB » Sun Apr 15, 2012 10:47 pm

Heyho!

Ich spiele nun schon eine ganze Weile mit tine20 herum und muss sagen es ist genau die Alternative die ich gesucht habe um eine kleine PersonalCloud aufzubauen.

Allerdings habe ich das Problem, das beim Sync vom Telefon zum Server sämtliche Felder übertragen werden, abgesehen von den Geburtstagen. Die Geburtstage werden einfach nicht gesynct und resultierend daraus bleiben die DB-Felder auf NULL.

Hat da vielleicht jemand einen Tipp/Hinweis,etc. ?

Vielen Dank im Voraus!
CreaB
 
Posts: 4
Joined: Sun Apr 15, 2012 10:43 pm

Re: Android CardDav Problem

Postby ph_il » Mon Apr 16, 2012 11:22 am

welches smartphone benutzt du? steht was im tine logfile?
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.tine20.net (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3513
Joined: Fri Mar 07, 2008 11:41 am

Re: Android CardDav Problem

Postby CreaB » Mon Apr 16, 2012 1:55 pm

Oh ja, natürlich.

Getestet wurde das ganze mit den HTC Desire (MIUI) und dem HTC Wildfire (Cyanogenmod 7).

Im log steht lediglich

[bday] =>

also leider nicht wirklich brauchbare Informationen.
CreaB
 
Posts: 4
Joined: Sun Apr 15, 2012 10:43 pm

Re: Android CardDav Problem

Postby ph_il » Wed Apr 18, 2012 10:57 am

wichtig wäre das, was das telefon schickt. also der xml-schnipsel. kannst du nochmal den geburtstag im telefon einstellen und dann den kompletten log-auszug von dem sync posten?
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.tine20.net (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3513
Joined: Fri Mar 07, 2008 11:41 am

Re: Android CardDav Problem

Postby CreaB » Wed Apr 18, 2012 7:34 pm

Ich weis ehrlich gesagt nicht gangz so welcher auszug aus dem log gefragt ist. =)

Zum Thema bday, o.ä. finde ich lediglich
[bday] =>

ein kompletter block aus dem log sieht in etwa so aus:

fcfb7 user, user - 2012-04-13T17:42:13+00:00 DEBUG (7): Addressbook_Convert_Contact_VCard_Abstract::toTine20Model::166 data Array
(
[adr_one_countryname] =>
[adr_one_locality] =>
[adr_one_postalcode] =>
[adr_one_street] =>
[adr_two_countryname] =>
[adr_two_locality] =>
[adr_two_postalcode] =>
[adr_two_street] =>
[bday] =>
[email] =>
[email_home] =>
[jpegphoto] => ÿØÿà^@^PJFIF^@^A^A^@^@^A^@^A^@^@ÿÛ^@<84>^@^E^C^D
[note] =>
[title] =>
[url] =>
[url_home] =>
[n_family] => blabla
[n_fileas] =>
[n_given] => blabla
[n_middle] =>
[n_prefix] =>
[n_suffix] =>
[org_name] =>
[org_unit] =>
[tel_cell] => 0815
[tel_cell_private] =>
[tel_fax] =>
[tel_fax_home] =>
[tel_home] =>
[tel_pager] =>
[tel_work] =>
[tags] =>
[notes] =>
[n_fn] => blabla blabla

Das scheint mit jedoch wenig hilfreich?! =)
CreaB
 
Posts: 4
Joined: Sun Apr 15, 2012 10:43 pm

Re: Android CardDav Problem

Postby ph_il » Fri Apr 20, 2012 10:23 am

was ich suche, ist der xml-schnipsel, den das telefon sendet. das sollte ungefähr so für einen kontakt aussehen:

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE AirSync PUBLIC "-//AIRSYNC//DTD AirSync//EN" "http://www.microsoft.com/">
<Sync xmlns="uri:AirSync" xmlns:AirSyncBase="uri:AirSyncBase" xmlns:Contacts="uri:Contacts"><Collections><Collection><Class>Contacts</Class><SyncKey>3</SyncKey><CollectionId>addressbook-root</CollectionId><DeletesAsMoves/><WindowSize>100</WindowSize><Options><AirSyncBase:BodyPreference><AirSyncBase:Type>1</AirSyncBase:Type><AirSyncBase:TruncationSize>5120</AirSyncBase:TruncationSize></AirSyncBase:BodyPreference><Conflict>1</Conflict></Options><Commands><Add><ClientId>4600</ClientId><ApplicationData><Contacts:FileAs>Fritzchen</Contacts:FileAs><Contacts:FirstName>Fritzchen</Contacts:FirstName><Contacts:LastName>Meinen</Contacts:LastName><Contacts:Birthday>1969-12-31</Contacts:Birthday><AirSyncBase:Body><AirSyncBase:Type>1</AirSyncBase:Type><AirSyncBase:EstimatedDataSize>0</AirSyncBase:EstimatedDataSize><AirSyncBase:Data></AirSyncBase:Data></AirSyncBase:Body><Contacts:Categories/><Contacts:Picture/></ApplicationData></Add></Commands></Collection></Collections></Sync>


du hast ja das gepostet, was tine ("toTine20Model") dann aus den daten macht.
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.tine20.net (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3513
Joined: Fri Mar 07, 2008 11:41 am

Re: Android CardDav Problem

Postby CreaB » Fri Apr 20, 2012 1:25 pm

Das ist nen guter Ansatz.

Loglevel ist auf 8, jedoch taucht genau das garnich im Log auf?! irgendwas läuft an der Stelle scheinbar schon schief?!

[EDIT]
Also irgendwie fehlen im Log Zeilen, welche bspw AirSync o.ä. aus deinem Auszug enthalten.

Als Zusatzinfo: ich Habe Tine auf Debian Squeeze aus den Repos installiert. MySQL als Backend.
[/EDIT]
CreaB
 
Posts: 4
Joined: Sun Apr 15, 2012 10:43 pm

Re: Android CardDav Problem

Postby ph_il » Thu Apr 26, 2012 10:10 am

hm, das muss aber drin sein. vielleicht hat das telefon in dem zeitraum keinen kontakt mehr geschickt? du müsstest zumindest auf dem telefon was ändern und dann nen moment warten. dann sollte der update request im log auftauchen. loglevel 7 sollte reichen, damit das xml angezeigt wird.
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.tine20.net (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3513
Joined: Fri Mar 07, 2008 11:41 am

Re: Android CardDav Problem

Postby cyorps » Mon May 21, 2012 5:39 pm

Ich vermute, dass dieser Fehler am Format des Geburtsdatum liegt. Denn ich habe mit einem Sync-AddOn für Thunderbird das gleiche Problem. Es wird alles außer das Geburtsdatum synchronisiert.

Beim AddOn scheint es daran zu liegen, dass dieses Tool erwartet mit dem Datumformat "yyyy-mm-dd" arbeiten zu können und entsprechend für Thunderbird auseinander bzw. zusammenbaut. Soweit ich das aber sehe, liefert Tine dieses Datum im datetime-Format ("yyyy-mm-dd HH:MM:SS"). Meine Log dazu sieht so aus:

Code: Select all
(
    [0] => Array
        (
            [jsonrpc] => 2.0
            [method] => Addressbook.saveContact
            [params] => Array
                (
                    [recordData] => Array
                        (
                            [container_id] => 8
                            [creation_time] => 2012-05-21 15:28:45
                            [created_by] => 3d9cd11c6b1f1c8b2c8f2aea1fafea5311742ffc
                            [last_modified_time] =>
                            [last_modified_by] =>
                            [is_deleted] => 0
                            [deleted_time] =>
                            [deleted_by] =>
                            [id] => eaf021cefc4684af8c42ed7b2e29a12d174a65d1
                            [tid] =>
                            [private] =>
                            [cat_id] =>
                            [n_family] => Nachname
                            [n_given] => Vorname
                            [n_middle] => Zweitname
                            [n_prefix] => Titel
                            [n_suffix] =>
                            [n_fn] => Vorname Nachname
                            [n_fileas] => Nachname, Vorname
                            [bday] => 2001-01-11 00:00:00
                            [org_name] => Firma
                            [org_unit] => Abteilung
                            [salutation] => MR
                            [title] => Berufs-Bezeichnung
                            [role] =>
                            [assistent] =>
                            [room] =>
                            [adr_one_street] => StraßeB
                            [adr_one_street2] => Weitere StraßeB
                            [adr_one_locality] => OrtB
                            [adr_one_region] => RegionB
                            [adr_one_postalcode] => PostleitzahlB
                            [adr_one_countryname] => DE
                            [adr_one_lon] =>
                            [adr_one_lat] =>
                            [label] =>
                            [adr_two_street] => StraßeP
                            [adr_two_street2] => Weitere StraßeP
                            [adr_two_locality] => OrtP
                            [adr_two_region] => RegionP
                            [adr_two_postalcode] => PostleitzahlP
                            [adr_two_countryname] => DO
                            [adr_two_lon] =>
                            [adr_two_lat] =>
                            [tel_work] => Telefon
                            [tel_cell] => Handy
                            [tel_fax] => Fax
                            [tel_assistent] =>
                            [tel_car] =>
                            [tel_pager] =>
                            [tel_home] => Telefon (privat)
                            [tel_fax_home] => Fax (privat)
                            [tel_cell_private] => Handy (privat)
                            [tel_other] =>
                            [tel_prefer] =>
                            [email] => e-mail@e-mail.com
                            [email_home] => e-mail-privat@e-mail.com
                            [url] => http://www.Internet.de
                            [url_home] =>
                            [freebusy_uri] =>
                            [calendar_uri] =>
                            [note] => Beschreibung
                            [tz] =>
                            [pubkey] =>
                            [jpegphoto] =>
                            [account_id] =>
                            [tags] => Array
                                (
                                    [0] => 714854f292484713837b86483fa11f4da43a0a88
                                )

                            [notes] => Array
                                (
                                )

                            [relations] => Array
                                (
                                )

                            [customfields] => Array
                                (
                                )

                            [type] => contact
                        )

                    [duplicateCheck] => 1
                )

            [id] => 2
        )

)


Code: Select all
e0aa7 Dummy, User - 2012-05-21T17:36:38+00:00 DEBUG (7): Addressbook_Convert_Contact_VCard_Factory::parseUserAgent::72 user agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 Lightning/1.4
e0aa7 Dummy, User - 2012-05-21T17:36:38+00:00 DEBUG (7): Addressbook_Convert_Contact_VCard_Abstract::toTine20Model::52 vcard data: BEGIN:VCARD
VERSION:3.0
PRODID:
UID:C53D7A5C-ECF0-0001-FBF4-1383B7B21E78
N:From TB;to Tine
FN:to Tine From TB
X-MOZILLA-HTML:FALSE
BDAY:2005-05-05
END:VCARD


e0aa7 Dummy, User - 2012-05-21T17:36:38+00:00 DEBUG (7): Addressbook_Convert_Contact_VCard_Abstract::toTine20Model::161 cardData X-MOZILLA-HTML
e0aa7 Dummy, User - 2012-05-21T17:36:38+00:00 DEBUG (7): Addressbook_Convert_Contact_VCard_Abstract::toTine20Model::161 cardData BDAY
e0aa7 Dummy, User - 2012-05-21T17:36:38+00:00 DEBUG (7): Addressbook_Convert_Contact_VCard_Abstract::toTine20Model::166 data Array
(
    [adr_one_countryname] =>
    [adr_one_locality] =>
    [adr_one_postalcode] =>
    [adr_one_region] =>
    [adr_one_street] =>
    [adr_one_street2] =>
    [adr_two_countryname] =>
    [adr_two_locality] =>
    [adr_two_postalcode] =>
    [adr_two_region] =>
    [adr_two_street] =>
    [adr_two_street2] =>
    [bday] =>
    [email] =>
    [email_home] =>
    [jpegphoto] =>
    [note] =>
    [title] =>
    [url] =>
    [url_home] =>
    [n_family] => From TB
    [n_fileas] =>
    [n_given] => to Tine
    [org_name] =>
    [org_unit] =>
    [tel_cell] =>
    [tel_fax] =>
    [tel_home] =>
    [tel_pager] =>
    [tel_work] =>
    [tags] =>
    [notes] =>
    [n_middle] =>
    [n_prefix] =>
    [n_suffix] =>
    [n_fn] => to Tine From TB
)

e0aa7 Dummy, User - 2012-05-21T17:36:38+00:00 DEBUG (7): Addressbook_Convert_Contact_VCard_Abstract::toTine20Model::176 data Array
(
    [adr_one_countryname] =>
    [adr_one_locality] =>
    [adr_one_postalcode] =>
    [adr_one_region] =>
    [adr_one_street] =>
    [adr_one_street2] =>
    [adr_two_countryname] =>
    [adr_two_locality] =>
    [adr_two_postalcode] =>
    [adr_two_region] =>
    [adr_two_street] =>
    [adr_two_street2] =>
    [bday] =>
    [email] =>
    [email_home] =>
    [jpegphoto] =>
    [note] =>
    [title] =>
    [url] =>
    [url_home] =>
    [n_family] => From TB
    [n_fileas] => From TB, to Tine
    [n_fn] => to Tine From TB
    [n_given] => to Tine
    [n_middle] =>
    [n_prefix] =>
    [n_suffix] =>
    [org_name] =>
    [org_unit] =>
    [tel_cell] =>
    [tel_fax] =>
    [tel_home] =>
    [tel_pager] =>
    [tel_work] =>
    [tags] =>
    [notes] =>
    [type] => contact
)

e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_Controller_Record_Abstract::create::393 Array
(
    [adr_one_countryname] =>
    [adr_one_locality] =>
    [adr_one_postalcode] =>
    [adr_one_region] =>
    [adr_one_street] =>
    [adr_one_street2] =>
    [adr_two_countryname] =>
    [adr_two_locality] =>
    [adr_two_postalcode] =>
    [adr_two_region] =>
    [adr_two_street] =>
    [adr_two_street2] =>
    [bday] =>
    [email] =>
    [email_home] =>
    [jpegphoto] =>
    [id] => C53D7A5B-3BD0-0001-356A-112017104680
    [note] =>
    [container_id] => 8
    [title] =>
    [url] =>
    [url_home] =>
    [n_family] => From TB
    [n_fileas] => From TB, to Tine
    [n_fn] => to Tine From TB
    [n_given] => to Tine
    [n_middle] =>
    [n_prefix] =>
    [n_suffix] =>
    [org_name] =>
    [org_unit] =>
    [tel_cell] =>
    [tel_fax] =>
    [tel_home] =>
    [tel_pager] =>
    [tel_work] =>
    [tags] =>
    [notes] =>
    [type] => contact
)

e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 DEBUG (7): Tinebase_Controller_Record_Abstract::create::395 Create new Addressbook_Model_Contact
e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_TransactionManager::startTransaction::81  startTransaction request
e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_TransactionManager::startTransaction::83  new transactionable. Starting transaction on this resource
e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_TransactionManager::startTransaction::96  queued transaction with id 7b726d0e933686940f7974796bf0710a75a13466
e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_Backend_Sql_Abstract::_getSelect::638 *
e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_Backend_Sql_Abstract::_addForeignTableJoins::672 foreign column: jpegphoto
e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_Backend_Sql_Abstract::_removeColFromSelect::716 Removing jpegphoto from columns.
e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_Backend_Sql_Abstract::_addForeignTableJoins::672 foreign column: account_id
e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_Backend_Sql_Abstract::_removeColFromSelect::716 Removing account_id from columns.
e0aa7 Dummy, User - 2012-05-21T17:36:39+00:00 TRACE (8): Tinebase_User_Sql::getUserByProperty::182 Array


Ich kann mir vorstellen, dass dies auch das Problem mit dem Geburtstagdatum bei Android sein könnte. Leider kann ich das nicht selbst testen und reproduzieren, da meine 2.3.6er Androidversion, nativ kein Geburtstagsfeld bei "Exchange-Kontakten" anbietet. Allerdings wird mir dieses Thema im Laufe des kommenden Monats auf die Füße fallen. Dann beschäftige ich mich sicherlich noch einmal damit.

Nun werde ich mal schauen, ob ich das TB-AddOn umGEBASTELT bekomme, sodass es mit diesem Format etwas anfangen kann....
cyorps
 
Posts: 14
Joined: Tue Jan 31, 2012 9:38 pm


Return to Deutsch [German]

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 10 guests

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 »