Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245821 - www-apps/mantisbt-1.1.4-r2 - Problem upload larger file than 2 MB - ERROR #401
Summary: www-apps/mantisbt-1.1.4-r2 - Problem upload larger file than 2 MB - ERROR #401
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-06 13:16 UTC by Marek Królikowski
Modified: 2008-11-07 12:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Królikowski 2008-11-06 13:16:31 UTC
i try upload a file largen than 2MB and i can`t..

Reproducible: Always

Steps to Reproduce:
1. change in php.ini to upload 20MB file:
upload_max_filesize = 20M
post_max_size = 20M
2. Change in config_inc.php in mantisbt max size upload file:
$g_allow_file_upload    = ON;
$g_max_file_size        = 20000000; # 20 MB

2. Try upload file largen than 2MB
3. Got APPLICATION ERROR #401


4. If i try upload file with 1 MB size - no problem working good!!


Expected Results:  
Upload file largen than 2 MB with no problem
Comment 1 Arttu Valo 2008-11-07 03:05:59 UTC
Could you be more specific about why this is a Gentoo bug and especially why is it critical? By the limited information you provided it looks more like of a configuration issue on your system rather than a bug in Gentoo.

I'd suggest you check out mantisbt's own forums. This exact question has been answered there many, many times over the years for various file size limits and other combinations -- with apache/php running out of memory, mysql having too low max_packet_size, etc (none of which you mention having checked).
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-07 05:04:31 UTC
Oh, and it certainly isn't critical...
Comment 3 Marek Królikowski 2008-11-07 06:11:16 UTC
Sorry for criticial i don`t know how i  select this.
I think there is a problem with mantisbt because i can import a 10MB *.sql file to my phpmyadmin with no problem. So this is not problem with apache/php/mysql.

Thanks
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-11-07 11:44:54 UTC
Please, increase mysqld max_allowed_packet parameter:
http://dev.mysql.com/doc/refman/4.1/en/packet-too-large.html

Also take a look here:
http://www.futureware.biz/blog/index.php?p=112&more=1&c=1&tb=1&pb=1

And last note: some symbols (I don't have a list for symbols) seems to be escaped during upload. e.g. 0 will be \0 during upload that means that if you try to upload 10M file with 0 it'll became 20M packet during upload.
Comment 5 Marek Królikowski 2008-11-07 12:16:53 UTC
Interesting i got in my.cnf:
max_allowed_packet                      = 5M
max_allowed_packet                      = 5M

and not working when i try upload 2 MB file.
I increase to 64MB and working good:

max_allowed_packet                      = 64M
max_allowed_packet                      = 64M

Sorry for that.
Thanks