Bug 34944 - Traceback while adding class with umlauts
Traceback while adding class with umlauts
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 3.2 R2 Errata
Assigned To: Dirk Wiesenthal
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-23 15:50 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): Error handling, Usability
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-05-23 15:50:05 CEST
I tried to create the class "abcöäüdef" which showed this traceback.
The frontend should check for valid characters.

Die Ausführung des Kommandos schoolwizards/classes/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/schoolwizards/__init__.py", line 118, in _decorated
    ret = func(self, request, *a, **kw)
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolwizards/__init__.py", line 196, in _create_obj
    if obj.create(ldap_user_write, validate=False):
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/base.py", line 365, in create
    success = self.create_without_hooks(lo, validate)
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/group.py", line 137, in create_without_hooks
    self.create_share(lo) # success = success and ?
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/group.py", line 142, in create_share
    return share.create(lo)
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/base.py", line 365, in create
    success = self.create_without_hooks(lo, validate)
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/base.py", line 380, in create_without_hooks
    raise ValidationError(self.errors.copy())
ValidationError: {'name': ['Der Wert darf nur Ziffern, Buchstaben, Punkte, und Leerzeichen enthalten, muss mindestens 2 Zeichen lang sein, und mit einer Ziffer oder einem Buchstaben beginnen und enden.']}
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2014-05-23 16:04:47 CEST
Looks like the group object has successfully been created in LDAP.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2014-05-23 16:23:39 CEST
(In reply to Sönke Schwardt-Krummrich from comment #1)
> Looks like the group object has successfully been created in LDAP.

The class group has been created but the class share is missing. When removing the class "abcöäüdef", the following message is shown.

"GSOst-abcöäüdef" existiert nicht!

The message aims at the missing class share. The class group has been removed successfully.
Comment 3 Dirk Wiesenthal univentionstaff 2014-08-19 23:42:27 CEST
ucs-school-umc-wizards 4.0.31-2
Comment 4 Florian Best univentionstaff 2014-08-20 11:33:34 CEST
Changelog: OK
Fix: OK
Code-Review: OK
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2014-08-27 17:01:49 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".