Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2011 at 02:11 UTC
Updated:
21 Oct 2011 at 01:00 UTC
I think as a result of #1083982-36: Fix support for remote streamwrappers, if you add a remote file to Media (e.g., via the media_youtube or oembed projects), and that module implements a stream wrapper that extends MediaReadOnlyStreamWrapper, then calls to file_delete() fail with a "The file ... was not deleted due to an error." message. While this can be fixed by each provider module, as in #1235852-8: The file was not deleted due to an error, here's a fix in the base class itself.
This patch is rolled against 1.x, but I'm putting the issue in 2.x first, in case the same or similar fix is needed there.
| Comment | File | Size | Author |
|---|---|---|---|
| media-streamwrapper.patch | 14.41 KB | effulgentsia |
Comments
Comment #1
TimelessDomain commentedThanks effulgentsia! It works for me.
Comment #2
amsukalski commentedIt worked for me as well. Thanks a lot!
Comment #3
rwohlebsubscribe
Comment #4
afsolano commentedsubscribe
Comment #6
Leeteq commentedHaving 1.x-RC1 released, should this be committed against that branch first?
Comment #7
effulgentsia commentedThe original patch failed to apply because it includes a large hunk to clean up a legacy 1.x file that has already been removed from 2.x. So, committed the remaining hunk to 2.x, and the original patch to 1.x.