Bug 39290 - ValidationError not handled by schoolwizards
ValidationError not handled by schoolwizards
Status: RESOLVED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 4.0 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.0.x
Assigned To: UCS@school maintainers
:
: 36763 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-31 15:49 CEST by Florian Best
Modified: 2019-02-05 21:20 CET (History)
1 user (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, External feedback
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 2015-08-31 15:49:21 CEST
We recevied the following traceback:
Die Ausführung des Kommandos schoolwizards/classes/put schoolwizards/classes ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 282, in execute
    function(self, request)
  File "%PY2.7%/ucsschool/lib/schoolldap.py", line 205, in wrapper_func
    return func( *args, **kwargs )
  File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 121, in _decorated
    ret = func(self, request, *a, **kw)
  File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 218, in _modify_obj
    obj.modify(ldap_user_write, validate=False)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 421, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY2.7%/ucsschool/lib/models/group.py", line 183, in modify_without_hooks
    success = share.modify(lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 421, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 435, in modify_without_hooks
    raise ValidationError(self.errors.copy())
ValidationError: {'school_group': ['"Schulklasse" ist erforderlich. Bitte erg\xc3\xa4nzen Sie diese Information.']}

Version:
4.0-2 errata263 (Walle)
Comment 1 Florian Best univentionstaff 2015-09-14 17:46:25 CEST
Reported again, 4.0-3 errata302 (Walle)
Comment 2 Florian Best univentionstaff 2016-01-05 12:53:04 CET
*** Bug 36763 has been marked as a duplicate of this bug. ***
Comment 3 Florian Best univentionstaff 2016-01-05 12:54:06 CET
(In reply to Florian Best from comment #2)
> *** Bug 36763 has been marked as a duplicate of this bug. ***
See also Bug 36763 - a different error message but same problem / code path.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2019-02-05 21:20:11 CET
This issue has been filled against UCS@school 4.0. The maintenance with bug 
and security fixes for UCS@school 4.0 has ended on May 31, 2016.

Customers still on UCS 4.0 are encouraged to update to UCS 4.3 (or later). 
Please contact your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug"
or simply reopen the issue. In this case please provide detailed information on
how this issue is affecting you.