50% trash retention bug
owncloud 5.0.12 an calc error on calculateFreeSpace function.
$rootInfo = $view->getFileInfo('/files/'); $free = $quota - $rootInfo['size']; // remaining free space for user if ($free > 0) { $availableSpace = ($free * self::DEFAULTMAXSIZE / 100) - $trashbinSize; // 50% on remaining space??? } else { $availableSpace = $free - $trashbinSize; }
@schiesbn Can you please have a look? THX
What look like? owncloud code is 50% from available not quota...
Etienne Pinet DSI - Système Rectorat de Lyon
Le 19/10/2013 21:00, Thomas Müller a écrit :
@schiesbn https://github.com/schiesbn Can you please have a look? THX
— Reply to this email directly or view it on GitHub https://github.com/owncloud/core/issues/5397#issuecomment-26656475.
That's by intention. We only use 50% of your remaining space for the trash (the other 50% is reserved for the versions). So that your files + trash + versions never exceed your quota
I know but it's a bad coding because version can be disabled and I guess many people prefered that 50% from quota but available space... That should be config.php writable...
Etienne Pinet DSI - Système Rectorat de Lyon
Le 22/10/2013 10:50, Björn Schießle a écrit :
That's by intention. We only use 50% of your available space for the trash (the other 50% is reserved for the versions). So that your files
- trash + versions never exceed your quote
— Reply to this email directly or view it on GitHub https://github.com/owncloud/core/issues/5397#issuecomment-26786537.