core icon indicating copy to clipboard operation
core copied to clipboard

50% trash retention bug

Open epinet opened this issue 13 years ago • 4 comments

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; }

epinet avatar Oct 17 '13 15:10 epinet

@schiesbn Can you please have a look? THX

DeepDiver1975 avatar Oct 19 '13 19:10 DeepDiver1975

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.

epinet avatar Oct 21 '13 08:10 epinet

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

schiessle avatar Oct 22 '13 08:10 schiessle

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.

epinet avatar Oct 22 '13 10:10 epinet