Page 1 of 1

attachment size > 2GB

Posted: 15 May 2019, 11:44
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)

Re: attachment size > 2GB

Posted: 15 May 2019, 11:53
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?

Re: attachment size > 2GB

Posted: 15 May 2019, 13:34
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.

Re: attachment size > 2GB

Posted: 15 May 2019, 13:49
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

Re: attachment size > 2GB

Posted: 16 May 2019, 09:26
by atrol