Bug 30090 - Traceback upon module opening as long as no school was entered
Traceback upon module opening as long as no school was entered
Status: CLOSED DUPLICATE of bug 42399
Product: UCS@school
Classification: Unclassified
Component: UMC - Password reset
UCS@school 3.1
Other Linux
: P3 minor (vote)
: UCS@school 4.1 R2 vXXX
Assigned To: Florian Best
Daniel Tröder
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-21 13:05 CET by Dirk Wiesenthal
Modified: 2016-12-12 13:16 CET (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 Dirk Wiesenthal univentionstaff 2013-01-21 13:05:57 CET
You get a traceback after opening Password reset: /umcp/command/schoolusers/schools yields 500 ("no school found"), thus the next commands /umcp/command/schoolusers/groups and .../query send {"school": ""}, both commands resulting in:

Die Ausführung des Kommandos schoolusers/query 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 215, in wrapper_func
    raise LDAP_ConnectionError( str( e ) )
LDAP_ConnectionError: Invalid DN syntax: invalid DN
Comment 1 Dirk Wiesenthal univentionstaff 2013-01-21 13:08:31 CET
This is only a minor bug, as this situation can only happen in the beginning. But if someone tests UCS@school and the first click is on "Password reset", this makes a very bad user experience.
Comment 2 Alexander Kläser univentionstaff 2013-01-21 14:57:15 CET
True. There is a user friendly error message: 

"Could not find any school. You have to create a school before continuing. Use the 'Add school' UMC module to create one."

It is not displayed as there are two other error messages that pop up in a dialog, as well, and thus overwrite the first one.
Comment 3 Alexander Kläser univentionstaff 2013-01-21 14:58:48 CET
The user-friendly message is shown in all other modules, except setting of passwords.
Comment 4 Dirk Wiesenthal univentionstaff 2013-01-22 20:02:33 CET
(In reply to comment #3)
> The user-friendly message is shown in all other modules, except setting of
> passwords.

No, this applies to the following modules (names as seen in the overview):
Computerroom
Distribute materials (not upon opening, but if you want to "Assign classes/workgroups")
Moderate Printers
Passwords (students)
Passwords (teachers)
Room (although this one is not critical. Error appears only if you search for computers in a new room, but a user friendly message is displayed *twice* before you are able to do so)
Administrate working group (although this one is not critical. Error appears only if you search for members in a new group, but a user friendly message is displayed *once* before you are able to do so)
Assign internet rules

This is 8 / 16 modules while the first three modules give an error, the forth gives a not-helpful message ("The helpdesk module is not configured properly. The recipient email address is not set.") and the fifth module "Add user" is the first one to state that you have to add a school first.
Comment 5 Alexander Kläser univentionstaff 2013-01-23 10:24:04 CET
Then we should have a look at it for the next release.
Comment 6 Florian Best univentionstaff 2013-01-24 10:26:27 CET
*** Bug 30152 has been marked as a duplicate of this bug. ***
Comment 7 Florian Best univentionstaff 2016-11-11 16:52:25 CET

*** This bug has been marked as a duplicate of bug 42399 ***
Comment 8 Sönke Schwardt-Krummrich univentionstaff 2016-12-12 13:16:23 CET
UCS@school 4.1 R2 v9 has been released.

http://docs.software-univention.de/changelog-ucsschool-4.1R2v9-de.html