6.0.0-alpha14
6/24/25

[#11455] Quota calculation does not work
Summary Quota calculation does not work
Queue Gollem
Queue Version 2.0.2
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester Valentin.Vidic (at) carnet (dot) hr
Created 10/01/2012 (4649 days ago)
Due
Updated 11/16/2012 (4603 days ago)
Assigned
Resolved 10/25/2012 (4625 days ago)
Github Issue Link
Github Pull Request
Milestone 2.0.3
Patch No

History
11/16/2012 02:04:24 PM Valentin (dot) Vidic (at) carnet (dot) hr Comment #8 Reply to this comment
After applying these patches Check quota button is not listed in the 
application menu any more. Accessing quota.php via URL displays a 
report saying the quota is not set. If I restore the code removed from 
Auth.php by the patches quota starts working again. Can you check this 
again?
10/27/2012 01:00:42 AM Git Commit Comment #7 Reply to this comment
Changes have been made in Git (develop):

commit 23338be0888370bb52b0ca653ebb095fb0d84378
Author: Jan Schneider <jan@horde.org>
Date:   Thu Oct 25 19:00:00 2012 +0200

     [jan] Fix setting quota parameters to the VFS backend (Bug #11455).

  gollem/docs/CHANGES        |    1 +
  gollem/lib/Auth.php        |   26 --------------------------
  gollem/lib/Factory/Vfs.php |   30 +++++++++++++++++++++++++++++-
  gollem/package.xml         |    2 ++
  4 files changed, 32 insertions(+), 27 deletions(-)

http://git.horde.org/horde-git/-/commit/23338be0888370bb52b0ca653ebb095fb0d84378
10/27/2012 01:00:37 AM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (develop):

commit 6afa638347561a7b7976fda03f0ee0f4052ee74f
Author: Jan Schneider <jan@horde.org>
Date:   Thu Oct 25 18:49:32 2012 +0200

     Fix check whether quota limit is set (Bug #11455).

  framework/Vfs/lib/Horde/Vfs/Base.php |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/6afa638347561a7b7976fda03f0ee0f4052ee74f
10/25/2012 05:05:50 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
Milestone ⇒ 2.0.3
 
10/25/2012 05:04:37 PM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (master):

commit 23338be0888370bb52b0ca653ebb095fb0d84378
Author: Jan Schneider <jan@horde.org>
Date:   Thu Oct 25 19:00:00 2012 +0200

     [jan] Fix setting quota parameters to the VFS backend (Bug #11455).

  gollem/docs/CHANGES        |    1 +
  gollem/lib/Auth.php        |   26 --------------------------
  gollem/lib/Factory/Vfs.php |   30 +++++++++++++++++++++++++++++-
  gollem/package.xml         |    2 ++
  4 files changed, 32 insertions(+), 27 deletions(-)

http://git.horde.org/horde-git/-/commit/23338be0888370bb52b0ca653ebb095fb0d84378
10/25/2012 05:04:32 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 6afa638347561a7b7976fda03f0ee0f4052ee74f
Author: Jan Schneider <jan@horde.org>
Date:   Thu Oct 25 18:49:32 2012 +0200

     Fix check whether quota limit is set (Bug #11455).

  framework/Vfs/lib/Horde/Vfs/Base.php |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/6afa638347561a7b7976fda03f0ee0f4052ee74f
10/25/2012 05:04:22 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (FRAMEWORK_4):

commit c54e2a5c2b18218a89809fcd9d188f91bbadfe3c
Author: Jan Schneider <jan@horde.org>
Date:   Thu Oct 25 19:00:00 2012 +0200

     [jan] Fix setting quota parameters to the VFS backend (Bug #11455).

     Conflicts:
             gollem/docs/CHANGES
             gollem/package.xml

  gollem/docs/CHANGES        |    1 +
  gollem/lib/Auth.php        |   26 --------------------------
  gollem/lib/Factory/Vfs.php |   30 +++++++++++++++++++++++++++++-
  gollem/package.xml         |    2 ++
  4 files changed, 32 insertions(+), 27 deletions(-)

http://git.horde.org/horde-git/-/commit/c54e2a5c2b18218a89809fcd9d188f91bbadfe3c
10/25/2012 05:04:17 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (FRAMEWORK_4):

commit c04902c6e8f57f4326d7ccc1e5bee8297b1d04db
Author: Jan Schneider <jan@horde.org>
Date:   Thu Oct 25 18:49:32 2012 +0200

     Fix check whether quota limit is set (Bug #11455).

  framework/Vfs/lib/Horde/Vfs/Base.php |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/c04902c6e8f57f4326d7ccc1e5bee8297b1d04db
10/01/2012 09:05:49 AM Valentin (dot) Vidic (at) carnet (dot) hr Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Quota calculation does not work
Queue ⇒ Gollem
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Clicking on Check quota in gollem shows:

0.00MB / -0.00MB (-170500.00%)

Gollem is configured as follows:

     $backends['domain.hr'] = array(
         'name' => 'Documents',
         'driver' => 'file',
         'hordeauth' => 'full',
         'params' => array(
             // The base location under which the user home directories live.
             'vfsroot' => '/srv/gollem-vfs/',
             // The default permissions to set for newly created 
folders and files.
             // 'permissions' => $conf['umask']
         ),
         'loginparams' => array(),
         'root' => '/' . $GLOBALS['registry']->getAuth(),
         'createhome' => true,
         // 'filter' => '^regex$',
         'quota' => '100 MB',
         'clipboard' => true,
         'attributes' => array('type', 'name', 'edit', 'download', 
'modified', 'size')
     );

For some reason getQuota in quota.php returns -1 for limit. Could it 
be the quota object is not passed correctly throught the injector 
interface:

$quota_info = $injector->getInstance('Gollem_Vfs')->getQuota();

If I add a getQuota call to Auth.php where the object is created and 
initialized it returns the correct values.

Saved Queries