Project

General

Profile

Actions

Defect #14181

closed

File uploading does not work

Added by Diego Villegas over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
2013-09-30
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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

error.png (5.95 KB) error.png Diego Villegas, 2013-05-31 08:05
Actions #1

Updated by Etienne Massip over 12 years ago

  • Priority changed from High to Normal

Any plugins?

Actions #2

Updated by Mischa The Evil over 12 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...

Actions #3

Updated by Mischa The Evil over 12 years ago

  • Status changed from New to Needs feedback
Actions #4

Updated by Diego Villegas over 12 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.

Actions #5

Updated by Jan Niggemann (redmine.org team member) over 12 years ago

  • Due date set to 2013-09-30

Can this isse be closed?

Actions #6

Updated by Etienne Massip over 12 years ago

  • Status changed from Needs feedback to Closed
  • Resolution set to Invalid
Actions

Also available in: Atom PDF