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 691937 - Remove resources with e_source_remove_sync()
Remove resources with e_source_remove_sync()
Status: RESOLVED FIXED
Product: evolution-ews
Classification: Other
Component: Miscellaneous / EWS Core
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Evolution EWS maintainer(s)
Evolution EWS maintainer(s)
Depends on:
Blocks: 656377
 
 
Reported: 2013-01-17 11:25 UTC by Milan Crha
Modified: 2013-04-15 13:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Milan Crha 2013-01-17 11:25:31 UTC
While working on bug #656377, I realized the underlying .source files are not removed properly for collection backends, the whole UI knows the source was removed, still it's back after restart.

I'm not sure if the easiest steps, but at least what I do:
a) grab EWS with the change for bug #656377
b) In Mail view pick from account's context menu "Manage Subscriptions" to
   get list of EWS account's Public Folders
c) subscribe to a calendar source
d) close the dialog, switch to Calendar view and see it's there
e) back to Mail view, and Manage Subscriptions - see the calendar is checked
f) uncheck the calendar - no error claim, no console warning
g) close the dialog and go to Calendar view
   - either the public folder is still there or it's gone
h) close evolution and all other evolution-related processes
i) run evolution again - the public calendar is still there
j) right-click it and "Delete", confirm about sure to delete from server
   - the source registry may show "Removing source (xxx)" eventually
k) close evolution and all other evolution-related processes
l) run evolution again - the public calendar is still there

When checking corresponding folder in
   ~/.cache/evolution/sources/<ews-uid>/
I see the corresponding .source file of the public Calendar is left there after delete attempts.
Comment 1 Matthew Barnes 2013-04-15 13:07:45 UTC
Looks like I just implemented the delete_resource_sync() method wrong in EWS.  Further details in the commit message.

Fixed for Evolution-EWS 3.9.1 and 3.8.1 in:

https://git.gnome.org/browse/evolution-ews/commit/?id=79b5c0e7ede29211f6de4d592eb594177f0be1f8

https://git.gnome.org/browse/evolution-ews/commit/?h=gnome-3-8&id=96332f0645d813cd64b5f445559a98dfc4876e7a
Comment 2 Matthew Barnes 2013-04-15 13:08:29 UTC
(In reply to comment #1)
> Fixed for Evolution-EWS 3.9.1 and 3.8.1 in:

Err... missed 3.8.1.  3.8.2 I meant.