I tested 0.8.1-1 from oneiric with no change to the issue.   However I
caught this comment below from a realted bug that seems like a
duplicate,
https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/762187/comments/15,
and was able to resolve my issue.

The problem is that libgdata pre-0.8.2 does not handle Google contact
custom fields that do not have a label. The equivalent output in
libgdata debug looks like this

<gContact:userDefinedField key='' value='Director'/>

An example of such a field with an empty label is shown in the attached
screenshot.  At Google.com/contacts where the screenshot was taken, it
can be easily edited to contain a label, or removed - both of which will
solve the issue.

You can find the contacts with unlabelled custom fields by searching the
libgdata debug output (start the factory with ~$LIBGDATA_FORCE_HTTP=1
LIBGDATA_DEBUG=3 /usr/lib/evolution/e-addressbook-factory) for the
following string.

userDefinedField key=''

It is worth noting that I have many custom fields with the label
defined.  These are all fine to be left unchanged, and may look similar
to the following with a label and value defined:

<gContact:userDefinedField key='Custom1' value='someb...@gmail.com'/>

Thanks Michael Seifert for figuring this out for us.

I had three of these to remove in my 1800+ contacts, and each time I had
to shutdown evolution, fix the data, kill the e-addressbook-factory
process and restart with the debug output to find the next occurance.
Only after I removed them all, and completely restarted evolution did
everything work fine.  And it has since.  Autocomplete, etc. All great.
Really happy about this.   I've left the 0.8.1 libgdata in place for
now, but per the comments linked above, the 0.8.0 shipping with Natty
should be fine.

This should no longer be an issue by default when 0.8.2 ships per the
upstream bug and commits.  I am re-linking this upstream bug for easy
patch extraction.

** Attachment added: "Custom Field without a label (key)"
   
https://bugs.launchpad.net/ubuntu/+source/evolution-data-server/+bug/755043/+attachment/2154043/+files/Google_Contacts.png

** Bug watch added: GNOME Bug Tracker #648058
   https://bugzilla.gnome.org/show_bug.cgi?id=648058

** Changed in: evolution-data-server
   Importance: High => Unknown

** Changed in: evolution-data-server
       Status: Incomplete => Unknown

** Changed in: evolution-data-server
 Remote watch: GNOME Bug Tracker #647067 => GNOME Bug Tracker #648058

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to evolution-data-server in Ubuntu.
https://bugs.launchpad.net/bugs/755043

Title:
  Unable to open addressbook error when loading Google Contacts

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to