Evolution failed to properly migrate Local Contacts during 2.32 (Natty) Upgrade

Bug #761037 reported by iMac
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Evolution
Fix Released
Medium
evolution (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: evolution

After upgrading to Natty following the Beta 1 release, my local contacts were not correctly migrated.

After the upgrade I could not access two of my three addressbooks. The "Personal" addressbook was accessible, however my older "Palm Contacts" (legacy data) and "Autocompleted" (used by the plugin) did not migrate. They had entries in Evolution, but resulted in URI error below.

This address book cannot be opened. This either means that an incorrect URI was entered, or the server is unreachable.
Detailed error message: Invalid source

Initially thought was related to bug 752468, but I know now is a result of this incorrect migration. Looking at the URI/sources I had the following entries with the broken addressbooks/contact lists.

imac@repo:~$ gconftool-2 --get /apps/evolution/addressbook/sources
[<?xml version="1.0"?>
<group uid="1227068757.7280.2@repo" name="Google" base_uri="google://" readonly="no"/>
,<?xml version="1.0"?>
<group uid="1227068757.7280.3@repo" name="WebDAV" base_uri="webdav://" readonly="no"/>
,<?xml version="1.0"?>
<group uid="1227068758.7280.4@repo" name="On This Computer" base_uri="local:" readonly="no"><source <email address hidden>" name="Autocompleted" uri="file:///<email address hidden>" <email address hidden>"><properties><property name="use-in-contacts-calendar" value="0"/></properties></source><source <email address hidden>" name="Personal" relative_uri="system"><properties><property name="use-in-contacts-calendar" value="0"/><property name="remember_password" value="false"/></properties></source><source <email address hidden>" name="Palm Contacts" uri="file:///<email address hidden>" <email address hidden>"><properties><property name="use-in-contacts-calendar" value="0"/><property name="pilot-sync" value="true"/></properties></source></group>
,<?xml version="1.0"?>
<group uid="1227068758.7280.6@repo" name="On LDAP Servers" base_uri="ldap://" readonly="no"/>
,<?xml version="1.0"?>
<group <email address hidden>" name="CouchDB" base_uri="couchdb://" readonly="no"><source <email address hidden>" name="Ubuntu One" relative_uri="127.0.0.1"><properties><property name="couchdb_instance" value="user"/><property name="remember_password" value="false"/></properties></source></group>
]

I know from reviewing this related bug comment that the above sources (uri=) were not correctly modified, except for the "Personal" where uri="system".

https://bugzilla.gnome.org/show_bug.cgi?id=632962#c7

based on this comment I executed a python script designed to fix this problem, found here:
http://www.gentoo.org/proj/en/desktop/gnome/howtos/gnome-2.32-upgrade.xml

The fix-addressbook.py script worked after I changed the permissions for execution, and by modifying the first line to match the local python2.7 interpreter path.

The same output now looks like below, and my contacts are totally accessible.

imac@repo:~$ ./fix-addressbook.py
Removing deprecated attribute from source 2 [Autocompleted]
Removing deprecated attribute from source 2 [Palm Contacts]
imac@repo:~$ gconftool-2 --get /apps/evolution/addressbook/sources
[<?xml version="1.0"?>
<group uid="1227068757.7280.2@repo" name="Google" base_uri="google://" readonly="no"/>
,<?xml version="1.0"?>
<group uid="1227068757.7280.3@repo" name="WebDAV" base_uri="webdav://" readonly="no"/>
,<?xml version="1.0"?>
<group base_uri="local:" name="On This Computer" readonly="no" uid="1227068758.7280.4@repo"><source name="Autocompleted" <email address hidden>" <email address hidden>"><properties><property name="use-in-contacts-calendar" value="0" /></properties></source><source name="Personal" relative_uri="system" <email address hidden>"><properties><property name="use-in-contacts-calendar" value="0" /><property name="remember_password" value="false" /></properties></source><source name="Palm Contacts" <email address hidden>" <email address hidden>"><properties><property name="use-in-contacts-calendar" value="0" /><property name="pilot-sync" value="true" /></properties></source></group>
,<?xml version="1.0"?>
<group uid="1227068758.7280.6@repo" name="On LDAP Servers" base_uri="ldap://" readonly="no"/>
,<?xml version="1.0"?>
<group <email address hidden>" name="CouchDB" base_uri="couchdb://" readonly="no"><source <email address hidden>" name="Ubuntu One" relative_uri="127.0.0.1"><properties><property name="couchdb_instance" value="user"/><property name="remember_password" value="false"/></properties></source></group>

FYI, I backed everything up before even starting my upgrade; YMMV on this workaround.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: evolution 2.32.2-0ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Thu Apr 14 14:53:09 2011
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: evolution
UpgradeStatus: Upgraded to natty on 2011-04-06 (8 days ago)

Revision history for this message
iMac (imac-netstatz) wrote :
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

This bug is an upstream one and it would be quite helpful if somebody experiencing it could send the bug the to the people writing the software. You can learn more about how to do this for various upstreams at https://wiki.ubuntu.com/Bugs/Upstream. Thanks in advance!

Changed in evolution (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
iMac (imac-netstatz) wrote :

Posted upstream

Changed in evolution:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
greenhunter (tierfreunde-hagenburg) wrote :

Same problem for me. and to a lot of other german users:

http://forum.ubuntuusers.de/topic/umstellung-auf-11-04-und-datenuebernahme-evolu/

Revision history for this message
Eric Bosma (eric-bosma) wrote :

After migrating evolution to mbox my addresses "on this computer" are not accessible from "new mail"

And when I wanted to look at the addresses at " contacts" all addresses where gone.
Only after restart the system the addresses are visible again

Changed in evolution:
status: New → Incomplete
Revision history for this message
David Clayton (dcstar) wrote :

I can confirm this in a migration to 2.3.2 from 2.28.3 on my Ubuntu 10.04 system. The files in the old .evolution tree were converted/moved to the new .local/share/evolution tree but only the first local Address Book worked.

To sum up, only the first "On This Computer" address book sources entry was converted correctly with the relative URI, the remaining Address Books still had the file path to the old .evolution file path left in their definitions.

Manually removing the old "uri="file:....." entries using the gconf-editor on the /apps/evolution/addressbook/sources key fixed the problem and then allowed the data in those extra Address Books to appear.

Revision history for this message
David Clayton (dcstar) wrote :
Revision history for this message
iMac (imac-netstatz) wrote :

Fixed in 12.04B, upstream as well.

Changed in evolution:
status: Incomplete → Fix Released
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - Oneiric Ocelot.

This is a significant bug in Ubuntu. If you need a fix for the bug in previous versions of Ubuntu, please do steps 1 and 2 of the SRU Procedure [1] to bring the need to a developer's attention.

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Changed in evolution (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.