Defect #14181
closedFile uploading does not work
Description
Hello
Update redmine to version 2.3.1 from version 2.2.3 and does not work properly file uploads, as shown in the attached image.
Seeing the firebug error message displays: "406 Not Acceptable. An Appropriate representation of the requested resource / uploads.js Could not be found on this server"
At other times this message: "Aborted"
Data installation of redmine are :
Environment:
Redmine version 2.3.1
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.13
Environment production
Database adapter MySQL
I appreciate your help..
Files
Updated by Mischa The Evil almost 13 years ago
Are you using the mod_security Apache module? A quick search on google shows that this error is usually triggered by this module...
Updated by Mischa The Evil almost 13 years ago
- Status changed from New to Needs feedback
Updated by Diego Villegas almost 13 years ago
Hi
Thanks Mischa The Evil, you were right in front of the mod_security, The server use mod_security2.
I Disable mod_security module which already works with file uploads fine, but obviously this is not recommended, so to check the mod_security log I find the problem is in the following lines of the module configuration file:
SecRule REQUEST_METHOD "!^(get|head|options|post|put|propfind)$" chain,deny,log,id:90001,status:406
SecRule HTTP_Content-Type "!(^application/x-www-form-urlencoded|^multipart/form-data;|^text/xml).*$"
I made a new test by activating the module and commenting the lines with which still works fine, but I would like to indicate as I can I do this in the file .htaccess and thus apply only to the account where this redmine, for it try the following in redmine/public/.htaccess but did not work:
<ifmodule mod_security2.c>
SecRuleRemoveById 90001
</ifmodule>
I think not taking any rules to put in the file .htaccess
Thank you for your help.
Updated by Jan Niggemann (redmine.org team member) over 12 years ago
- Due date set to 2013-09-30
Can this isse be closed?
Updated by Etienne Massip over 12 years ago
- Status changed from Needs feedback to Closed
- Resolution set to Invalid