Describe the bug
The fileid fields in the richdocuments_direct and richdocuments_wopi tables are of type int(11). The filecache table has type BIGINT(20). If there is a higher file ID than 2147483647, Collabora fails to load with:
An exception occurred while executing a query: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'fileid' at row 1
To Reproduce
Steps to reproduce the behavior:
Create a file with an ID > 2147483647
Try to open the file in Collabora.
The request to /apps/richdocuments/token throws an error 500
Look into the nextcloud log file and find the SQL error
Expected behavior
The richdocuments app should also use BIGINT(20) as type for the fileid field.
Describe the bug The
fileid
fields in therichdocuments_direct
andrichdocuments_wopi
tables are of typeint(11)
. Thefilecache
table has typeBIGINT(20)
. If there is a higher file ID than 2147483647, Collabora fails to load with:To Reproduce Steps to reproduce the behavior:
/apps/richdocuments/token
throws an error 500Expected behavior The richdocuments app should also use BIGINT(20) as type for the fileid field.
Screenshots none
Client details:
Server details
Operating system: Debian 12
Web server: Nginx 1.22.1-9
Database: MariaDB 1:10.11.6-0+deb12u1
PHP version: 8.2.18-1
Nextcloud version: 28.0.5.1
Version of the richdocuments app: 8.3.5
Version of Collabora Online: 23.05.11.1
Configuration of the richdocuments app