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 631762 - “views” folder in .evolution prevent successful migration to XDG dirs
“views” folder in .evolution prevent successful migration to XDG dirs
Status: RESOLVED DUPLICATE of bug 635087
Product: evolution
Classification: Applications
Component: Shell
2.32.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2010-10-09 15:18 UTC by Yves-Alexis Perez
Modified: 2011-03-22 12:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] Bug #631762 - cleanup `.evolution/tasks/tasks` after XDG migration (1.39 KB, patch)
2011-03-04 14:43 UTC, Paul Menzel
none Details | Review

Description Yves-Alexis Perez 2010-10-09 15:18:48 UTC
As noted on irc, the migration can't finish on my box because of empty folders still present in the old dir:


corsac@hidalgo: evolution

(evolution:2394): GLib-CRITICAL **: the GVariant format string `(u)' has a type of `(u)' but the given value has a type of `(s)'

(evolution:2394): GLib-CRITICAL **: g_variant_get: assertion `valid_format_string (format_string, TRUE, value)' failed
Migrating cached data
Migrating config data
Migrating local user data
  rmdir /home/corsac/.evolution/calendar
  FAILED: Directory not empty (contents follows)
          views
  rmdir /home/corsac/.evolution/addressbook
  FAILED: Directory not empty (contents follows)
          views
  rmdir /home/corsac/.evolution/tasks
  FAILED: Directory not empty (contents follows)
          views
          tasks
  rmdir /home/corsac/.evolution/memos
  FAILED: Directory not empty (contents follows)
          views


And:


corsac@hidalgo: find .evolution -ls
6766597    4 drwx------   6 corsac   corsac       4096 oct.  3 12:07 .evolution
6766598    4 drwxr-xr-x   3 corsac   corsac       4096 oct.  3 12:07 .evolution/calendar
7128161    4 drwxr-xr-x   2 corsac   corsac       4096 oct.  3 12:03 .evolution/calendar/views
6766954    4 drwxr-xr-x   3 corsac   corsac       4096 oct.  3 12:06 .evolution/addressbook
6767116    4 drwxr-xr-x   2 corsac   corsac       4096 oct.  3 12:03 .evolution/addressbook/views
6766600    4 drwxr-xr-x   4 corsac   corsac       4096 oct.  3 12:07 .evolution/tasks
7225406    4 drwxr-xr-x   2 corsac   corsac       4096 avril  5  2008 .evolution/tasks/views
6766869    4 drwxr-xr-x   3 corsac   corsac       4096 déc. 15  2008 .evolution/tasks/tasks
6766872    4 drwxr-xr-x   2 corsac   corsac       4096 déc. 15  2008 .evolution/tasks/tasks/views
6766602    4 drwxr-xr-x   3 corsac   corsac       4096 oct.  3 12:07 .evolution/memos
6785540    4 drwxr-xr-x   2 corsac   corsac       4096 nov.  8  2009 .evolution/memos/views
Comment 1 Milan Crha 2010-10-21 10:59:44 UTC
Thanks for a bug report. I tried to reproduce this, by creating empty
~/.evolution/mail/views
and it is properly removed:
> Migrating cached data
> Migrating config data
> Migrating local user data
>   rmdir /home/zyx/.evolution/mail/views
>   rmdir /home/zyx/.evolution/mail

Do you have there any hidden file?

Also, can this be related to bug #625761? Though this one is in since 2.31.6
Comment 2 Yves-Alexis Perez 2010-10-21 11:23:30 UTC
You have the find -ls result: no hidden files/folders.
Comment 3 Milan Crha 2010-10-21 11:59:37 UTC
(In reply to comment #2)
> You have the find -ls result: no hidden files/folders.

I know, though I use to 'ls -a', somehow. :)
Anyway, tested on actualmaster (which is, I believe, same as 2.32.0 in this area, and it removes the empty views folder for me.
Comment 4 Yves-Alexis Perez 2010-10-21 12:52:48 UTC
Well, I'm not sure what happens then, because 2.32.0 definitely doesn't.
Comment 5 Milan Crha 2010-10-21 16:34:07 UTC
Hrm, OK, I cannot confirm this, maybe someone else can, thus I'm reseting the NeedInfo on this.
Comment 6 André Klapper 2010-12-12 14:11:40 UTC
Upgraded from Fedora 13 (up-to-date) to Fedora 14 via "PreUpgrade".
First start of Evolution:

$:andre\> rpm -q evolution
evolution-2.32.1-1.fc14.i686
$:andre\> evolution --offline

** (evolution:2540): CRITICAL **: categories_icon_theme_hack: assertion `filename != NULL && *filename != '\0'' failed
Migrating cached data
  mv /home/user/.evolution/cache/http /home/user/.cache/evolution/http
  mv /home/user/.evolution/cache/tmp /home/user/.cache/evolution/tmp
  rmdir /home/user/.evolution/cache
  FAILED: Directory not empty (contents follows)
          addressbook
Migrating config data
[...]  rmdir /home/user/.evolution/signatures
  rmdir /home/user/.evolution/addressbook
  FAILED: Directory not empty (contents follows)
          views
          local
  rmdir /home/user/.evolution/tasks
  FAILED: Directory not empty (contents follows)
          views
          tasks
  rmdir /home/user/.evolution/memos
  FAILED: Directory not empty (contents follows)
          views
  rmdir /home/user/.evolution/cache
  FAILED: Directory not empty (contents follows)
          addressbook
  rmdir /home/user/.evolution/calendar
  FAILED: Directory not empty (contents follows)
          views
  rmdir /home/user/.evolution/mail

I had to remove ~/.evolution manually to get rid of these warnings each time I started Evolution.
Comment 7 Matthew Barnes 2010-12-12 14:28:39 UTC

*** This bug has been marked as a duplicate of bug 635087 ***
Comment 8 Paul Menzel 2011-03-04 14:43:06 UTC
Created attachment 182468 [details] [review]
[PATCH] Bug #631762 - cleanup `.evolution/tasks/tasks` after XDG migration

Commit 863b9bf6 [1]

	Bug #635087 - Leftover files after migration of config/data/cache to XDG directories

did not fix the following case

	$ evolution
	Migrating cached data
	Migrating config data
	Migrating local user data
		rmdir /home/joe/.evolution/tasks
		FAILED: Das Verzeichnis ist nicht leer (contents follows)
		        tasks

which was reported in bug 631762 [2].

[1] http://git.gnome.org/browse/evolution/commit/?id=863b9bf6391eb64bb28106b37df206d24312e54d
[2] https://bugzilla.gnome.org/show_bug.cgi?id=631762
---
This patch has not yet been tested.
Comment 9 Matthew Barnes 2011-03-04 14:50:30 UTC
That looks like a misplaced directory, perhaps from some old bug.  You may as well just delete that yourself.
Comment 10 Paul Menzel 2011-03-22 12:22:52 UTC
(In reply to comment #9)
> That looks like a misplaced directory, perhaps from some old bug.  You may as
> well just delete that yourself.

Thank you. I just want to note that this directory was in the logs from Andre, Yves-Alexis and me.
Comment 11 Paul Menzel 2011-03-22 12:24:33 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > That looks like a misplaced directory, perhaps from some old bug.  You may as
> > well just delete that yourself.
> 
> Thank you. I just want to note that this directory was in the logs from Andre,
> Yves-Alexis and me.

And for the record, it is from March, 11  2009.