Project

General

Profile

Actions

Defect #30411

closed

Filesystem adapter does not show correct size for large files

Added by Felix Schäfer almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
SCM
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

We have a couple of large files (~9GB) which size doesn't show correctly.

I suspect source:/tags/4.0.0/lib/redmine/scm/adapters/filesystem_adapter.rb#L84, the conversion to a signed 32-bit Integer (https://apidock.com/ruby/Array/pack), to introduce errors for file sizes that are a little over 2GB.

Changing l and L to q and Q should solve the problem.


Related issues

Related to Redmine - Defect #12279: error with large files in filesystem repoClosed

Actions
Actions

Also available in: Atom PDF