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

beginner’s picture

This 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.

beginner’s picture

Nice looking web site you have there, and nice mission, btw. :)

yched’s picture

Could 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) ?

yched’s picture

Plus, sorry but I had to ask :-) :
Can you confirm that everything works OK when there's no apostrophe in the file name ?

andrewfn’s picture

I 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.txt
When I do the same operation on 4.7. the file gets called: This is a \'test\' file.txt
I 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.

yched’s picture

According 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.

beginner’s picture

Category: bug » support

I already asked in #1: what is a 406 error? That is what I get when I try to download the file with ''. :

406 Not Acceptable
 An appropriate representation of the requested resource /files/This is a 'test' file.txt could not be found on this server.

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

scoutbaker’s picture

Version: x.y.z » 4.7.x-dev
Status: Active » Fixed

This 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.

andrewfn’s picture

The site is now running Drupal 5, so I guess that fixed it.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.