Closed (fixed)
Project:
Drupal core
Version:
4.7.x-dev
Component:
file system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2006 at 03:13 UTC
Updated:
3 Mar 2008 at 19:23 UTC
This is a follow-on from http://drupal.org/node/70742
To reproduce the problem, simply upload a file whose name contains apostrophes and try to view it.
The problem doesn't occur on my 4.7 sites, only those running cvs
It manifests in both IE and Firefox
Here is a link to my test site: http://irismin.ca/testfile
Comments
Comment #1
beginner commentedThis looks like a server setting problem.
What's a 406 error?
I cannot download the file on your site with konqueror, but I cannot reproduce locally. The attached file can be viewed normally.
This seems to be an Apache configuration problem. Unfortunately, I cannot help more than that.
Comment #2
beginner commentedNice looking web site you have there, and nice mission, btw. :)
Comment #3
yched commentedCould you provide additional info :
What's the name of the file (if any) that actually gets created on the server ?
What is your server config (OS, PHP version, magicquote settings - you can find the latter in your phpinfo) ?
Comment #4
yched commentedPlus, sorry but I had to ask :-) :
Can you confirm that everything works OK when there's no apostrophe in the file name ?
Comment #5
andrewfn commentedI have added a phpinfo link at http://irismin.ca/systeminfo.php I have also pasted the Drupal status report into the test page: http://irismin.ca/testfile
The file that gets created on the server is:
This is a 'test' file.txtWhen I do the same operation on 4.7. the file gets called:
This is a \'test\' file.txtI have uploaded a file without apostrophes and it downloads fine.
I have just created a fresh install from scratch to reproduce the problem. I have two installations on the same server, one is 4.7 and the other is 5.0. The problem occurs only in the 5.0 install.
Comment #6
yched commentedAccording to your phpinfo, in seems that magicquotes are off, so this is probably not related to http://drupal.org/node/70742
I'd say this is a server config issue, since you say the file is created and is named correctly, and the url for the link in the 'attachments' box is the right one.
I have no clue about what is causing that, though.
Comment #7
beginner commentedI already asked in #1: what is a 406 error? That is what I get when I try to download the file with ''. :
See if anything here helps:
http://www.checkupdown.com/status/E406.html
http://gallery.menalto.com/node/47410
http://www.google.com/search?q=406+not+acceptable
Comment #8
scoutbaker commentedThis issue appears to be fixed. I was able to successfully access the problem file from the test page.
@andrewfn: Do you know what resolved this? Thanks.
Comment #9
andrewfn commentedThe site is now running Drupal 5, so I guess that fixed it.
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.