attachment size > 2GB

General discussion of Mantis.

Moderators: Developer, Contributor

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

attachment size > 2GB

Post by Tomek »

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: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: attachment size > 2GB

Post by cas »

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: 07 May 2019, 09:21

Re: attachment size > 2GB

Post by Tomek »

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: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: attachment size > 2GB

Post by cas »

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: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: attachment size > 2GB

Post by atrol »

Please use Search before posting and read the Manual
Post Reply