Bug 31703 - Printer Quota requires all quota to be set
Printer Quota requires all quota to be set
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Policies
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.1-1-errata
Assigned To: Felix Botner
Janek Walkenhorst
:
: 31664 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-11 10:13 CEST by Kevin Dominik Korte
Modified: 2013-07-10 14:18 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Dominik Korte univentionstaff 2013-06-11 10:13:30 CEST
It currently isn't possible to only set group or user quota. The Policy always requires at least one userquota, one user per group quota and one group quota.
Comment 1 Stefan Gohmann univentionstaff 2013-06-17 06:43:56 CEST
The following traceback occurs:

  File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 359, in _thread
    module.modify( properties )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 155, in wrapper_func
    ret = func( *args, **kwargs )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 410, in modify
    obj.modify()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 344, in modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 727, in _modify
    self._ldap_pre_modify()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/policies/print_quota.py", line 205, in _ldap_pre_modify
    self.check_entries()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/policies/print_quota.py", line 218, in check_entries
    for entry in self.info['quotaUsers']:

KeyError: 'quotaUsers'
Comment 2 Felix Botner univentionstaff 2013-06-25 17:09:58 CEST
*** Bug 31664 has been marked as a duplicate of this bug. ***
Comment 3 Felix Botner univentionstaff 2013-06-25 17:32:37 CEST
The problem was the removal of pre existing user or group quotas.

ucs3.1-0-errata3.1-1:
FIX: 8.0.143-17.1020.201306251718
YAML:  2013-06-25-univention-directory-manager-modules.yaml

ucs3.2-0:
FIX: 9.0.2-1.1019.201306251715
Added changelog entry
Comment 4 Janek Walkenhorst univentionstaff 2013-07-03 16:18:36 CEST
Code review: OK
Traceback does not happen anymore. Can successfully create policies with only one of the 3 attributes.

Advisory: OK
Comment 5 Moritz Muehlenhoff univentionstaff 2013-07-10 14:18:46 CEST
http://errata.univention.de/ucs/3.1/147.html