Defect #15694

Error while uploading attachments

Added by Yuri N almost 9 years ago. Updated almost 9 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:2.4.1



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
  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
  Subversion                     1.6.17
  Mercurial                      2.0.2
Redmine plugins:
  no plugin installed

Thanks in advance.

redmine_upload.png (71.3 KB) Yuri N, 2013-12-13 11:48

Скриншот 2014-01-15 19.14.58.png (128 KB) Yan Charnyy, 2014-01-15 16:15


#1 Updated by Yuri N almost 9 years ago

#2 Updated by Yuri N almost 9 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( in my setup) I get 404 error:
Page not found
The page you were trying to access doesn't exist or has been removed.

#3 Updated by Jean-Philippe Lang almost 9 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.

#4 Updated by Yan Charnyy almost 9 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

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
Subversion 1.6.17
Redmine plugins:
redmine_lightbox 0.0.1
redmine_workload 1.0.2

#5 Updated by Michele Bollini almost 9 years ago

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

This is my configuration:
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
Subversion 1.6.17

Also available in: Atom PDF