Bug 35617 - adding computerroom fails if group without school prefix exists
adding computerroom fails if group without school prefix exists
Status: CLOSED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: ucs-test
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 3.2 R2 Errata
Assigned To: Ammar Najjar
Sönke Schwardt-Krummrich
:
Depends on: 35278
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-15 15:17 CEST by Sönke Schwardt-Krummrich
Modified: 2014-08-27 17:01 CEST (History)
2 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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2014-08-15 15:17:47 CEST
Please create an ucs-test script that triggers this error and fails untils this bug exists.

+++ This bug was initially created as a clone of Bug #35278 +++

We received the following traceback. It is reproducible by the following steps:
1. creating a computerroom → this creates a room called "Schule-Room"
1. create a room with the same name → this created a room called "Room"
3. create again a room with the same name → traceback

When opening some room the Schoolprefix is also added to that room in the form. after saving it is displayed with the schoolprefix.

Die Ausführung des Kommandos schoolrooms/add ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py",
line 204, in execute
    func( request )
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/schoolldap.py", line 204, in
wrapper_func
    return func( *args, **kwargs )
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolrooms/__init__.py",
line 147, in add
    group_obj.create()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 333, in
create
    return self._create()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 680, in
_create
    al=self._ldap_addlist()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/groups/group.py", line 584,
in _ldap_addlist
    raise univention.admin.uexceptions.groupNameAlreadyUsed, ': %s' % (name)
groupNameAlreadyUsed: : schule-TEST
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2014-08-18 11:00:16 CEST
The problem is simplier than expected. No test script required.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2014-08-27 15:11:01 CEST
Yep, it was not required to create several rooms. Just one room with the same name was sufficient to trigger the traceback → verified
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2014-08-27 17:01:40 CEST
UCS@school 3.2 R2 v2 has been released:
http://docs.univention.de/release-notes-ucsschool-3.2R2v2-de.html

If this error occurs again, please use "Clone This Bug".