After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682820 - Settings not converted on backup restore
Settings not converted on backup restore
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.4.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2012-08-27 19:12 UTC by Chris
Modified: 2012-09-05 09:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evo patch (960 bytes, patch)
2012-09-05 09:07 UTC, Milan Crha
committed Details | Review

Description Chris 2012-08-27 19:12:52 UTC
Hi,

I did not ind any bugs related to what I'm face of...

I'm using around 30 labels for mail tags, and used to filter in vfolders.

While upgrading fedora 16 to 17, evolution 3.2.3 to 3.4.3, all my labels disappeared.

I tried to import a 3.2.3 backup file, but same behavior.

Let me know what I can do to help in providing you more details.

Thanks
Comment 1 Chris 2012-08-29 10:37:45 UTC
I found the reason:

Some configurations data has been moved from gconf to gsettings.

I used gsetting-data-convert to restore my labels (and other folder settings).

I think evolution should do the conversion if we are upgrading. Is there any reason why it is not executed?

Thanks
Comment 2 Milan Crha 2012-09-04 17:15:21 UTC
Thanks for a bug report. I thought the conversion is run on its own, though I didn't know when it's run. Do you think it's an issue of packaging, rather than upstream?
Comment 3 Chris 2012-09-04 21:07:13 UTC
From the packaging point of view, ie RPM, may be the call to 'gsetting-data-convert' should be an idea.

But, as I imagine that existing evolution data are stored with the evolution version (let's say 3.2.3), then when we start the new version ie 3.4.3, evolution should detect this change and start settings conversion from gconf to gsettings. I think this should be the best place for conversion.


Related to backup/restore, it may be the same case.
The backup is made under an old version ie 3.2.3 using gconf. 

So, as soon as data are restored (untar), and detected as an old data version ie 3.2.3, then the gconf to gsettings should be executed.

As of now, from what I see, the backup made under 3.4.3 is still using gconf...
So, this means the backup will lost evolution setting. Not good at all.

Hope it will help...
Comment 4 Milan Crha 2012-09-05 08:33:50 UTC
You are right, the restore should run the data convert when it's done. I'll cook something for that. Thanks for the opinion.
Comment 5 Milan Crha 2012-09-05 09:07:36 UTC
Created attachment 223504 [details] [review]
evo patch

for evolution;

This calls gsettings-data-convert after import of old keys into GConf. This is not fully applicable to 3.4.x, but I think it may work too there.
Comment 6 Milan Crha 2012-09-05 09:09:52 UTC
Created commit 39cf487 in evo master (3.5.92+)