Defect #12279

error with large files in filesystem repo

Added by chad merritt over 6 years ago. Updated 5 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution:Cant reproduce Affected version:


I've got a filesystem repo that contains DVD ISO images. When I try to view the repo I get

An error occurred when trying to access the repository: bignum too big to convert into `unsigned long'

It seems like Redmine is only calculating the size of the files in Bytes, which blows up the variable here. I don't know Ruby enough to try and modify it so that it can calculate sizes in kb/mb/gb so as not to throw this error.. This is all my theory of course.

Redmine 1.4.4.stable (MySQL)
Debian 6.0.5 Squeeze
ruby 1.8.7

Related issues

Related to Redmine - Defect #30411: Filesystem adapter does not show correct size for large f... Closed


#1 Updated by Toshi MARUYAMA over 6 years ago

  • Category set to SCM

#2 Updated by Go MAEDA 8 months ago

In my environment, the error doesn't occur but wrong size value is displayed in the repository browser. Probably because of 32-bit integer overflow.

  Redmine version                3.4.6.devel.17618
  Ruby version                   2.3.7-p456 (2018-03-28) [x86_64-darwin16]
  Rails version                  5.2.1
  Environment                    development
  Database adapter               SQLite
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp

#3 Updated by Go MAEDA 5 months ago

  • Related to Defect #30411: Filesystem adapter does not show correct size for large files added

#4 Updated by Go MAEDA 5 months ago

  • Status changed from New to Closed
  • Resolution set to Cant reproduce

Also available in: Atom PDF