GNOME Bugzilla – Bug 540274
Evolution error in Contacts after restore from backup
Last modified: 2012-01-29 00:16:42 UTC
Downstream bug https://bugzilla.novell.com/show_bug.cgi?id=402594 I have imported my mail from a backup file with Restore Settings. After that i wanted to add a new contact but when i selected the contacts button i received the following error: Unable to open address book We where unable to open this addressbook. Please check that the path /home/gmathisz/.evolution/addressbook/local/system exists and you have permission to access it. The file that i find in that path is addressbook.db and my user has Read and Write rights.
Is the /home/gmathisz/ prefix for the user same as on the new machine? I can reproduce it only when changing the 'uri' key in the /apps/evolution/addressbook/sources, otherwise it works fine. As far as I can tell, the base_uri of the local group is configured as expected, only the 'uri' of the source isn't. Not all sources has the 'uri' attribute for me. Those without it works fine.
Created attachment 113460 [details] [review] proposed evo patch for evolution; Fix in backup-restore plugin, the restore part only. This will try to fix the paths of local sources/accounts, if the user name where restored differs with the one where the backup was done. please notice this comment in the code: /* why does this return a 'const' object?!? */ I didn't find a proper way how to obtain "writeable" pointer from EAccountList.
The EIterator API is broken. GObjects should never be marked constant. I came across this in several places in the composer and overrode it with a cast, just like you did.
The username/password on this machine is the same on both machines. How do i apply the patch to see if it works?
You can apply only if you compile from sources. But if your new machine's /home/user/ is exactly same as on that old one, then it should definitely work. Can you try to look on attributes in upper directories too? Maybe try to create file in the /home/gmathisz/.evolution/addressbook/local/system on console, whether it will work or not. It should, though. Can you paste here a content of /apps/evolution/addressbook/sources from gconf-editor please? Thanks.
*** Bug 534812 has been marked as a duplicate of this bug. ***
(In reply to comment #3) > The EIterator API is broken. You want to mark the patch for needs-work?
That statement wasn't directed at Milan's patch but at the EIterator API he had to use in writing the patch. I was reassuring him that he did the right thing. Beyond that, I haven't really reviewed his patch in detail.
Milan, code seems fine. Just test and commit it. It should work much better now, from what I have started in 2.12.
Committed to trunk. Committed revision 35710.
This commit caused #541123
Oops! A clean build fixed the problem. For some reason, plugins/backup-restore/Makefile didn't get generated correctly. Sorry about the noise. :( Moving the status back to Resolved.
*** Bug 525738 has been marked as a duplicate of this bug. ***
*** Bug 519767 has been marked as a duplicate of this bug. ***