Affects Version/s: 8.0
Fix Version/s: 9.0-rc-1
Component/s: Old Core
Environment:Operating System: CentOS 7
Database: MS-SQL 2008 R2
Jetty servlet container bundled with XWiki 8.0
Maximum Upload Size = 4294967296
Files, which exceed 2GB in size, aren't uploaded as an attachment correctly.
The progress bar UI element shows the correct file size, the file size after uploading the file is -[random_number]. The file itself is truncated at 2GB after uploading. The database column XWA_SIZE in table xwikiattachment is set to "int" instead of "bigint".
How to reproduce:
Upload any file exceeding 2GB in size to XWiki