GNOME Bugzilla – Bug 558121
Podcast files are not deleted
Last modified: 2009-05-24 20:08:16 UTC
Please describe the problem: E.g. clicking on "Remove Downloaded Files" does not result the podcast file to be deleted. Might be related to bug 558120. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
The explanation given in the related bug #558120 seems reasonable, but then the podcasts cannot be deleted as they has no write permissions. Difficult situation, it seems...
I'm also encountering this for all subscribed podcasts. Despite being listed in banshee as not-downloaded after the delete command, the files are definitely still present in ~/Music/Podcasts. They even get sucked into the general music library due to being under ~/Music. I'm seeing this in current SVN.
*** Bug 572641 has been marked as a duplicate of this bug. ***
I can confirm Benjamín's findings from bug #558120 : In FeedEnclosure.DeleteFile, File.Delete fails, cetainly because the file is read-only. [Warn 17:46:52.946] Caught an exception - Access to the path "/home/lorentz/Music/Library/Podcasts/Down and Out in the Magic Kingdom/PB-MagicKingdom-07.mp3" is denied. (in `mscorlib') at System.IO.File.Delete (System.String path) [0x000ba] in /var/tmp/portage/dev-lang/mono-2.2-r5/work/mono-2.2/mcs/class/corlib/System.IO/File.cs:187 at Migo.Syndication.FeedEnclosure.DeleteFile () [0x0002d] in /home/lorentz/Projets/banshee/src/Libraries/Migo/Migo.Syndication/FeedEnclosure.cs:141 Maybe we need to set it to RW before deleting ?
Created attachment 132602 [details] [review] Set the file attributes to normal before deleting file This patch sets the file attributes to "normal" before deleting a podcast file. Changing the attribute allows R/W access to the file. Please test for any regressions or bad behavior. FYI, this probably surfaced when the following bug was fixed in mono : https://bugzilla.novell.com/show_bug.cgi?id=378229
Thanks Bertrand.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
*** Bug 573902 has been marked as a duplicate of this bug. ***
*** Bug 580677 has been marked as a duplicate of this bug. ***
*** Bug 583732 has been marked as a duplicate of this bug. ***