Project

General

Profile

Actions

Defect #12279

closed

error with large files in filesystem repo

Added by chad merritt over 11 years ago. Updated about 5 years ago.

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

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

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 filesClosedJean-Philippe Lang

Actions
Has duplicate Redmine - Defect #8806: Error when access to repository: bignum too big to convert into `unsigned long'Closed2011-07-13

Actions
Actions #1

Updated by Toshi MARUYAMA over 11 years ago

  • Category set to SCM
Actions #2

Updated by Go MAEDA over 5 years 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.

Environment:
  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
Actions #3

Updated by Go MAEDA about 5 years ago

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

Updated by Go MAEDA about 5 years ago

  • Status changed from New to Closed
  • Resolution set to Cant reproduce
Actions #5

Updated by Go MAEDA over 4 years ago

  • Has duplicate Defect #8806: Error when access to repository: bignum too big to convert into `unsigned long' added
Actions

Also available in: Atom PDF