Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2007 at 10:02 UTC
Updated:
18 Apr 2011 at 21:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
dovry commentedI think I've solved the problem by making changes in the file module, similar to the solution others have posted for drupal 4.x (se related bug report).
Comment #2
Bodo Maass commentedHi dovry,
Thanks for this patch. I found the same problem on Drupal 5.15, and your code fixed it. I think this should be committed, because it clearly is a bug.
Attached is the same code as a patch to file.inc.
With this I have tested that the private file transfers work over https in IE6, IE7, FF3 and Opera 9.6. Normal (http) transfers are unaffected by the patch.
Comment #3
drummThere should be a code comment explaining the addition since this is not obvious from reading the code. Code comments like // *** added **** are completely unnecessary.
It appears that the development version of Drupal has the same issue, the same Cache-Control headers are set. I would like to see this fixed there and then backported as needed.
Comment #4
jody lynnRerolled for HEAD with comments fixed.
Comment #6
mlsamuelson commentedThis problem continues to persist in IE browsers.
Patch updated for HEAD (Drupal 7).
Comment #8
greg.1.anderson commentedNote that there is already a patch for d6 at #163445: Internet Explorer cannot download private files. Please commit to d6 after accepting in d7.
Comment #9
aspilicious commented#6: ie_cannot_dl_over_ssl-181036-6.patch queued for re-testing.
Comment #10
damien tournoud commentedshould probably be:
As this decision should be based on the state of the protocol of the current request, not on the protocol of the base URL.
Comment #14
greg.1.anderson commentedGood point. I tested that on d6, and it works well. (Used server variables instead of $is_https on d6; see #163445: Internet Explorer cannot download private files.)
Here is the d7 version, untested, but should work equally well. [I deleted two previous patches that did not pass SimpleTest; oops.]
Comment #15
yesct commented#14: ie_cannot_dl_over_ssl-181036-14.d7.patch queued for re-testing.
Comment #16
greg.1.anderson commentedNote that in 163445#43, pescetti posted a new patch that also adds
Content-Disposition:to the header. This did not seem to be an issue for me, but might be important in some configurations.Comment #17
yesct commentedI tried the patch in #4 on my D6 site...
and got
patching file includes/file.inc
Hunk #1 succeeded at 819 (offset -501 lines).
I'm guessing this needs to be fixed in D7 first, then ported back to D6. But I thought it might have gone through a D6 version over the years... is the one in #4 the right one for D6?
Comment #18
greg.1.anderson commentedI recommend 163445#43 for D6. That patch should be re-rolled for D7 and posted here.
Comment #19
aspilicious commentedReroll
Comment #20
webengr commentedsubscribe....
I can not believe this is still not fixed,,, every core update I have to rehack to fix customers...
Comment #21
greg.1.anderson commentedI can no longer reproduce this problem, and believe it probably has been fixed.
With IE 8.0.6001 and a fresh install of drupal-7.x-HEAD, which includes includes/file.inc,v229, I found that I could download a .pdf using the private download method. The patch in #19 is not applied in my file.inc,v229, but when I pull down the file, I find that Cache-Control: private and the Content-Disposition: attachment lines are being sent, although Pragma:private is not included.
Cache-control: private was added by #898036: Private images broken, which I believe takes care of this issue as well. I recommend closing this as a duplicate, but I'm leaving this open for secondary verification.
Comment #22
greg.1.anderson commentedSince no one has shown any interest in this issue in ~6 months, I'm taking that as confirmation that this issue is fixed as described above. Closing.
Comment #23
webengr commentedActually I think it was not fixed till a few days later after your post, there is another forum
thread with patches and Gábor Hojtsy submitted the patch to core on April 14th 2011 that may address this issue:
http://drupal.org/node/163445#comment-4346740
Comment #24
greg.1.anderson commentedIn d6, you are correct; in d7, this issue was fixed per #21 some time ago.