h.ogi's place - Ticket-90 Diff
- Added parts are displayed like this.
- Deleted parts are displayed
like this.
! GC : card created in TB is not copied to Google
:Priority:Normal
:Reporter:Oliver
:Status:Assigned:Status:Closed
:Assigned to:h.ogi
:Version:GC 0.6.39
:Milestone:GC 0.6.40
:Created:2011-10-14
!! Description
The initial sync worked 100%, updates on existing cards work 100% - great so far!
But adding a new card directly in the Google address book or copying a card from another address book into the TB Google address book results in:
"Google contact was not added. Card will be deleted...."
Here is the log excerpt (sorry long):
<<<
Detect add
Belong to group
[Update] 400: Bad Request
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:gContact="http://schemas.google.com/contact/2008">
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/contact/2008#contact" xmlns="http://www.w3.org/2005/Atom"/>
<gd:name>
<gd:fullName>test123 surname</gd:fullName>
<gd:givenName>test1234</gd:givenName>
<gd:familyName>surname</gd:familyName>
</gd:name>
<gContact:nickname>nick</gContact:nickname>
<gd:email address="test123@test.com" primary="true" rel="http://schemas.google.com/g/2005#other"></gd:email>
<gd:im address="screen" protocol="http://schemas.google.com/g/2005#GOOGLE_TALK" rel="http://schemas.google.com/g/2005#other"/>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#work">1111</gd:phoneNumber>
...
>>>
----
!! Changelog
!!!h.ogi (2011-10-14 (金) 18:20:00)
Is it possible to paste entire log?
!!!Oliver (2011-10-14 (Fri) 19:34:15)
See below. I omitted some log entries in-between the initial sync and the attempt to add a new entry as they contain personal data.
If you need more or different info /data let me know.
<<<
Retrieving Google Contacts ...
New contacts object.
Serial: 0
Yield weight: 100
start listening ...
URI is moz-abmdbdirectory://abook-1.mab
Skip zzz@googlemail.com.
First sync done: false
Sync mode: 0
Add listener
Sync Contacts in SEQ. Rests are 0
[Auth] 200: OK
Dump TB addressbook
[Retrieve Groups] 200: OK
parse feed
Skip raw XML dump
Next Link:
Num entries: 4
Get contacts in: http://www.google.com/m8/feeds/groups/olivermuc%40gmail.com/base/6
[Retrieve] 200: OK
parse feed
Skip raw XML dump
Next Link: https://www.google.com/m8/feeds/contacts/olivermuc%40gmail.com/full?start-index=101&max-results=100&group=http%3A%2F%2Fwww.google.com%2Fm8%2Ffeeds%2Fgroups%2Folivermuc%40gmail.com%2Fbase%2F6
Num entries: 100
Get contacts in: http://www.google.com/m8/feeds/groups/olivermuc%40gmail.com/base/6
...
Detect add
Belong to group
[Update] 400: Bad Request
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:gContact="http://schemas.google.com/contact/2008">
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/contact/2008#contact" xmlns="http://www.w3.org/2005/Atom"/>
<gd:name>
<gd:fullName>test123 surname</gd:fullName>
<gd:givenName>test1234</gd:givenName>
<gd:familyName>surname</gd:familyName>
</gd:name>
<gContact:nickname>nick</gContact:nickname>
<gd:email address="test123@test.com" primary="true" rel="http://schemas.google.com/g/2005#other"></gd:email>
<gd:im address="screen" protocol="http://schemas.google.com/g/2005#GOOGLE_TALK" rel="http://schemas.google.com/g/2005#other"/>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#work">1111</gd:phoneNumber>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#home">222</gd:phoneNumber>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#home_fax">333</gd:phoneNumber>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#mobile">444</gd:phoneNumber>
<gd:structuredPostalAddress rel="http://schemas.google.com/g/2005#home">
<gd:street>street</gd:street>
<gd:city>city</gd:city>
<gd:postcode>81667</gd:postcode>
<gd:country>germany</gd:country>
</gd:structuredPostalAddress>
<gd:structuredPostalAddress rel="http://schemas.google.com/g/2005#work">
<gd:street>work street</gd:street>
</gd:structuredPostalAddress>
<gd:organization rel="http://schemas.google.com/g/2005#other">
<gd:orgTitle>title</gd:orgTitle>
<gd:orgName>org</gd:orgName>
</gd:organization>
<gContact:birthday when="91-01-01"/>
<gContact:userDefinedField key="Custom1" value="custom1"/>
<content xmlns="http://www.w3.org/2005/Atom">note 1</content>
<gd:extendedProperty name="contactTB" value="PreferMailFormat=0/AllowRemoteContent=0/PreferDisplayName=1"/>
<gd:extendedProperty name="homeAddrTB" value="HomeAddress2=/HomeCity=city/HomeState=/HomeCountry=germany/HomeZipCode=81667"/>
<gd:extendedProperty name="workAddrTB" value="WorkAddress2=/WorkCity=/WorkState=/WorkZipCode=/WorkCountry="/>
<gContact:groupMembershipInfo href="http://www.google.com/m8/feeds/groups/olivermuc%40gmail.com/base/6"/>
</atom:entry>
>>>
!!!h.ogi (2011-10-15 (土) 22:08:45)
Thanks for the log.
Birthday is the problem. You need to input 1991, instead of 91, for year field.
In the next release, it will prepend 19 automatically.
!!!Oliver (2011-10-16 (日) 13:20:45)
Oh boy. Thanks for the heads-up. I should have used sensible data to test with...again thanks for looking into it!
Great plugin!
!!!Oliver (2011-10-16 (Sun) 17:09:51)
Oh boy. Thanks for the heads-up. I should have used sensible data to test with...again thanks for looking into it!
Great plugin!
!!!h.ogi (2011-10-16 (日) 18:48:57)
v0.6.40b1 prepends "19" if birth year is 2 digits. Please note if a person was born after 2000, his birth year is wrongly recorded. I recommend you not to omit it.
{{its_edit_ticket_form}}
:Priority:Normal
:Reporter:Oliver
:Assigned to:h.ogi
:Version:GC 0.6.39
:Milestone:GC 0.6.40
:Created:2011-10-14
!! Description
The initial sync worked 100%, updates on existing cards work 100% - great so far!
But adding a new card directly in the Google address book or copying a card from another address book into the TB Google address book results in:
"Google contact was not added. Card will be deleted...."
Here is the log excerpt (sorry long):
<<<
Detect add
Belong to group
[Update] 400: Bad Request
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:gContact="http://schemas.google.com/contact/2008">
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/contact/2008#contact" xmlns="http://www.w3.org/2005/Atom"/>
<gd:name>
<gd:fullName>test123 surname</gd:fullName>
<gd:givenName>test1234</gd:givenName>
<gd:familyName>surname</gd:familyName>
</gd:name>
<gContact:nickname>nick</gContact:nickname>
<gd:email address="test123@test.com" primary="true" rel="http://schemas.google.com/g/2005#other"></gd:email>
<gd:im address="screen" protocol="http://schemas.google.com/g/2005#GOOGLE_TALK" rel="http://schemas.google.com/g/2005#other"/>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#work">1111</gd:phoneNumber>
...
>>>
----
!! Changelog
!!!h.ogi (2011-10-14 (金) 18:20:00)
Is it possible to paste entire log?
!!!Oliver (2011-10-14 (Fri) 19:34:15)
See below. I omitted some log entries in-between the initial sync and the attempt to add a new entry as they contain personal data.
If you need more or different info /data let me know.
<<<
Retrieving Google Contacts ...
New contacts object.
Serial: 0
Yield weight: 100
start listening ...
URI is moz-abmdbdirectory://abook-1.mab
Skip zzz@googlemail.com.
First sync done: false
Sync mode: 0
Add listener
Sync Contacts in SEQ. Rests are 0
[Auth] 200: OK
Dump TB addressbook
[Retrieve Groups] 200: OK
parse feed
Skip raw XML dump
Next Link:
Num entries: 4
Get contacts in: http://www.google.com/m8/feeds/groups/olivermuc%40gmail.com/base/6
[Retrieve] 200: OK
parse feed
Skip raw XML dump
Next Link: https://www.google.com/m8/feeds/contacts/olivermuc%40gmail.com/full?start-index=101&max-results=100&group=http%3A%2F%2Fwww.google.com%2Fm8%2Ffeeds%2Fgroups%2Folivermuc%40gmail.com%2Fbase%2F6
Num entries: 100
Get contacts in: http://www.google.com/m8/feeds/groups/olivermuc%40gmail.com/base/6
...
Detect add
Belong to group
[Update] 400: Bad Request
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:gContact="http://schemas.google.com/contact/2008">
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/contact/2008#contact" xmlns="http://www.w3.org/2005/Atom"/>
<gd:name>
<gd:fullName>test123 surname</gd:fullName>
<gd:givenName>test1234</gd:givenName>
<gd:familyName>surname</gd:familyName>
</gd:name>
<gContact:nickname>nick</gContact:nickname>
<gd:email address="test123@test.com" primary="true" rel="http://schemas.google.com/g/2005#other"></gd:email>
<gd:im address="screen" protocol="http://schemas.google.com/g/2005#GOOGLE_TALK" rel="http://schemas.google.com/g/2005#other"/>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#work">1111</gd:phoneNumber>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#home">222</gd:phoneNumber>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#home_fax">333</gd:phoneNumber>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#mobile">444</gd:phoneNumber>
<gd:structuredPostalAddress rel="http://schemas.google.com/g/2005#home">
<gd:street>street</gd:street>
<gd:city>city</gd:city>
<gd:postcode>81667</gd:postcode>
<gd:country>germany</gd:country>
</gd:structuredPostalAddress>
<gd:structuredPostalAddress rel="http://schemas.google.com/g/2005#work">
<gd:street>work street</gd:street>
</gd:structuredPostalAddress>
<gd:organization rel="http://schemas.google.com/g/2005#other">
<gd:orgTitle>title</gd:orgTitle>
<gd:orgName>org</gd:orgName>
</gd:organization>
<gContact:birthday when="91-01-01"/>
<gContact:userDefinedField key="Custom1" value="custom1"/>
<content xmlns="http://www.w3.org/2005/Atom">note 1</content>
<gd:extendedProperty name="contactTB" value="PreferMailFormat=0/AllowRemoteContent=0/PreferDisplayName=1"/>
<gd:extendedProperty name="homeAddrTB" value="HomeAddress2=/HomeCity=city/HomeState=/HomeCountry=germany/HomeZipCode=81667"/>
<gd:extendedProperty name="workAddrTB" value="WorkAddress2=/WorkCity=/WorkState=/WorkZipCode=/WorkCountry="/>
<gContact:groupMembershipInfo href="http://www.google.com/m8/feeds/groups/olivermuc%40gmail.com/base/6"/>
</atom:entry>
>>>
!!!h.ogi (2011-10-15 (土) 22:08:45)
Thanks for the log.
Birthday is the problem. You need to input 1991, instead of 91, for year field.
In the next release, it will prepend 19 automatically.
!!!Oliver (2011-10-16 (日) 13:20:45)
Oh boy. Thanks for the heads-up. I should have used sensible data to test with...again thanks for looking into it!
Great plugin!
!!!Oliver (2011-10-16 (Sun) 17:09:51)
Oh boy. Thanks for the heads-up. I should have used sensible data to test with...again thanks for looking into it!
Great plugin!
!!!h.ogi (2011-10-16 (日) 18:48:57)
v0.6.40b1 prepends "19" if birth year is 2 digits. Please note if a person was born after 2000, his birth year is wrongly recorded. I recommend you not to omit it.
{{its_edit_ticket_form}}