Closed (fixed)
Project:
Stage File Proxy
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2012 at 19:58 UTC
Updated:
28 May 2015 at 21:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
StephenBrown commentedHere's a patch to check in the init function. Patch done against 7.x-1.x branch.
As a side effect, this should also mitigate DOS by misconfiguration if enabled and pointed to itself.
Comment #2
gregglesCan you give a scenario for how to trigger this?
My sense is that a properly functioning .htaccess should prevent this from happening. Maybe there's a small race situation?
Comment #3
gngn commentedI think Stephen is right.
I got a (htaccess protected) live server with an image missing on my development server.
stage_file_proxy downloads the missing file - but not just once but 21 times!
(I don't know why 21 times - maybe some browser settings? It's the same in firefox, chrome and opera).
If I put in the patch from #1 the file is downloaded only once.
Correct me if I got something wrong.
Comment #4
gregglesI also stephen is right, but only in some scenarios. I just tested again and couldn't reproduce the problem as its been described.
Comment #5
samuel.mortensonI agree that this is a problem with .htaccess, could StephenBrown or gngn provide a copy of their .htaccess file so that we can replicate the issue? With a standard Drupal .htaccess file this issue does not occur.
Comment #6
gregglesI think this is a better status if we're waiting on information.
Comment #7
gregglesWithout information, closing.