Closed (fixed)
Project:
Stage File Proxy
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2011 at 13:42 UTC
Updated:
14 May 2014 at 21:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mikeytown2 commentedsubscribe; another issue is _stage_file_proxy_fetch() doesn't get called in this code block
One more is with 'stage_file_proxy_hotlink' enabled it failed to generate the image locally from the root file. So it looks like the above logic needs some help.
Comment #2
c4rl commentedIndeed, imagecache_create_path() strips the file directory sometimes, so the file could exist in the files directory or elsewhere.
Attached patch checks for existence outside of files directory in addition to files directory.
Comment #3
gregglesThanks for providing this patch and explaining it. With a 7.x port I'd commit it.
Comment #4
David_Rothstein commentedRelated, although I don't think it's quite the same issue: #2049807: Local image styles aren't found for stream wrappers that aren't on the top level of the public files directory
Comment #5
thedavidmeister commentedUnless I misunderstand the problem, I don't think there's a need for a d7 port as image style derivatives in d7 cannot be created outside the files directory. This is a d6 specific issue.
Comment #6
gregglesThanks for that feedback, thedavidmeister. Committed to 6.x-1.x http://drupalcode.org/project/stage_file_proxy.git/commit/e92c474
Thanks for the patch, c4rl!
Comment #8
jcisio commentedThanks. I was just going to submit a patch :-)
Comment #9
jcisio commentedThe commit did not totally fix that issue and introduced a warning for files in the files directory. The attached patch should fix that.
This might also fix problem like #1545912: stage_file_proxy should check if the file already exists, even if it's not an imagecache in D6. The D7 code base is different, but now in D6 a have a lot of warning for existing files using the latest dev version.
Comment #10
jcisio commentedNope. Patch #9 makes no sense because $relative_path can only have "imagecache/" at the beginning. I think something in #2159705: Not checking files directory recursively before save disturbed my test.