MantisBT - ATutor
View Issue Details
0003173ATutorFile Managerpublic2007-09-05 00:522008-08-21 08:59
IndieRect 
greg 
normalminoralways
closedfixed 
1.5.5 
1.6 
1.5.4, SVN
0003173: ZIPs not extracted in courses with custom size
The bug:
If an admin has set quota to "Other" for a particular course, any ZIP files uploaded into that course via the File Manager would not be extracted.
No relevant error messages would appear.

Reson:
In tools/filemanager/zip.php, there is a logical error in calculating the remaining space after extraction (variable $total_after at lines 160...165). The if-structure covers only 'unlimited' and 'default' options for course sizes. The subsequent execution therefore has unexpected results.

Solution:
Insert the following after line 164:
---
} else {
   $total_after = get_human_size($my_MaxCourseSize - $course_total - $totalBytes);
---
No tags attached.
Issue History
2007-09-05 00:52IndieRectNew Issue
2007-09-05 00:52IndieRectAffects version => 1.5.4, SVN
2007-12-09 06:07gregStatusnew => resolved
2007-12-09 06:07gregFixed in Version => 1.6
2007-12-09 06:07gregResolutionopen => fixed
2007-12-09 06:07gregAssigned To => greg
2007-12-09 06:07gregNote Added: 0002595
2008-08-21 08:59gregStatusresolved => closed

Notes
(0002595)
greg   
2007-12-09 06:07   
Committed revision 7123.
Added suggested line