attachment size > 2GB

General discussion of Mantis.

Moderators: Contributor, Developer

Post Reply
Tomek
Posts: 6
Joined: May 07, 2019 4:21 am

attachment size > 2GB

Post by Tomek » May 15, 2019 6:44 am

If attachment bigger than 2GB is uploaded to mantisbt the filesize in bug_file table is incorrectly stored, due to range of integer.
E.G. uploading 3GB bytes causes filesize to be max Int (2147483647)

cas
Posts: 520
Joined: Mar 11, 2006 11:08 am
Contact:

Re: attachment size > 2GB

Post by cas » May 15, 2019 6:53 am

The range cannot be the limit, if you can store 2147483647 , you also can store 9147483647?
Are you sure it is not because of a limitation in the config/settings?

Tomek
Posts: 6
Joined: May 07, 2019 4:21 am

Re: attachment size > 2GB

Post by Tomek » May 15, 2019 8:34 am

No, the range is not limit. The file is correctly saved, but filesize in the table bug_file stores wrong filesize, so while downloading, filesize is incorrect, web browser will finish downloading after reading filesize bytes, so download is incomplete. filesize.{bug_file} is of type integer.

cas
Posts: 520
Joined: Mar 11, 2006 11:08 am
Contact:

Re: attachment size > 2GB

Post by cas » May 15, 2019 8:49 am

In that case, create a bug-report.
I did read somwhere:
filesize error In linux 32-bit for files that are larger 2GB 8O

atrol
Site Admin
Posts: 7581
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: attachment size > 2GB

Post by atrol » May 16, 2019 4:26 am

Please use Search before posting and read the Manual

Post Reply