Project

General

Profile

Actions

Defect #15694

open

Error while uploading attachments

Added by Yuri N over 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hello

When I'm trying to upload attachment redmine hangs for a few seconds and then prints "error" near the file name to be attached(please look at screenshot with Firebug enabled).

In console I got this message:
[2013-12-13 14:24:33] ERROR invalid body size.
[2013-12-13 14:24:33] ERROR HTTPRequest#fixup: WEBrick::HTTPStatus::BadRequest occured.

(production.log remains untouched)

I tried to do it with different browsers(Firefox, Chrome,Opera) but it behaves the same way.(of course tried to clean browsers' caches)

I had this problem with redmine-2.3 and now I've just run update to 2.4.1 and it's still the same.

# ruby script/about
Environment:
  Redmine version                2.4.1.stable
  Ruby version                   1.8.7-p352 (2011-06-30) [x86_64-linux]
  Rails version                  3.2.15
  Environment                    production
  Database adapter               MySQL
SCM:
  Subversion                     1.6.17
  Mercurial                      2.0.2
  Git                            1.7.9.5
  Filesystem
Redmine plugins:
  no plugin installed

Thanks in advance.


Files

Actions #2

Updated by Yuri N about 10 years ago

I noticed that I can upload text attachments(i.e. plain text files) and cannot attach anything else.

And also it seems strange: when I'm trying to get directly uploads.js(http://192.168.10.1:3000/uploads.js in my setup) I get 404 error:
Page not found
The page you were trying to access doesn't exist or has been removed.

Actions #3

Updated by Jean-Philippe Lang about 10 years ago

There's no route for GET /uploads.js so it´s normal that you get a 404 (uploads.js is not a file) ?
Your problem seems to be a webrick issue and not a Redmine error. You're using a pretty old ruby version, you should try to upgrade first.

Actions #4

Updated by Yan Charnyy about 10 years ago

Hello, i have the same problem. But most of the attachments load properly.
Problems mainly with ZIP archives.

the screenshot shows download the same file with different names only

Environment:
Redmine version 2.3.3.devel
Ruby version 1.9.3-p448 (2013-06-27) [x86_64-linux]
Rails version 3.2.13
Environment production
Database adapter Mysql2
SCM:
Subversion 1.6.17
Git 1.7.9.5
Filesystem
Redmine plugins:
redmine_lightbox 0.0.1
redmine_workload 1.0.2

Actions #5

Updated by Michele Bollini about 10 years ago

I have the same problem too since i moved from 2.2.0 to 2.4.3.

This is my configuration:
Environment:
Redmine version 2.4.3.stable
Ruby version 1.9.3-p392 (2013-02-22) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter Mysql2
SCM:
Subversion 1.6.17
Git 1.7.9.5

Actions

Also available in: Atom PDF