Bug 53452 - Remove print quota setting from ucs-school-import
Remove print quota setting from ucs-school-import
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 5.0
Other Linux
: P5 normal (vote)
: UCS@school 5.0 v1
Assigned To: Florian Best
Felix Botner
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-06-16 00:09 CEST by Florian Best
Modified: 2021-11-29 17:19 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-06-16 00:09:30 CEST
Bug #51482 / c2ffea664bd052e0fdbba5184fb8e7bff7c9f8ad removed support for print-quota.
The settings also have to be removed from the UCS@school importer.

Traceback (most recent call last):
  File "/usr/share/ucs-school-import/scripts/import_printer", line 3866, in <module>
    import_printer()
  File "/usr/share/ucs-school-import/scripts/import_printer", line 3000, in import_printer
    object["setQuota"] = "0"  # WORKAROUND for Bug #14858
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 378, in __setitem__
    self.descriptions[key]
KeyError: 'setQuota'
Comment 1 Florian Best univentionstaff 2021-06-16 11:47:11 CEST
Removed in:

ucs-school-import (18.0.1)
731bd581ff5f | Bug #53452: remove print quota support from import_printer()
Comment 3 Felix Botner univentionstaff 2021-08-06 13:23:07 CEST
-> more /opt/prin 
A	school1	slave	laserdrucker	file:/tmp/printer

-> /usr/share/ucs-school-import/scripts/import_printer /opt/prin
infile is  : /opt/prin
creating object cn=laserdrucker,cn=printers,ou=school1,dc=five,dc=new

-> udm shares/printer list

DN: cn=PDFDrucker,cn=printers,ou=school1,dc=five,dc=new
  ACLtype: allow all
  description: Moderierter PDF-Drucker
  location: None
  model: None
  name: PDFDrucker
  producer: cn=misc,cn=cups,cn=univention,dc=five,dc=new
  sambaName: None
  spoolHost: slave.five.new
  uri: cups-pdf:/ .

DN: cn=laserdrucker,cn=printers,ou=school1,dc=five,dc=new
  ACLtype: allow all
  description: None
  location: None
  model: None
  name: laserdrucker
  producer: cn=misc,cn=cups,cn=univention,dc=five,dc=new
  sambaName: None
  spoolHost: slave.five.new
  uri: file:/ tmp/printer

OK - no more (print) quota in ucs-school-import
Comment 4 Jürn Brodersen univentionstaff 2021-11-29 17:19:36 CET
UCS@school 5.0 v1 has been released.

https://docs.software-univention.de/release-notes-ucsschool-5.0v1-de.html

If this error occurs again, please clone this bug.