Bug 48509 - Starting an exam with a space at the end of a projectname should not show a traceback
Starting an exam with a space at the end of a projectname should not show a t...
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.3
Other Linux
: P5 normal (vote)
: UCS@school 4.3 v6-errata
Assigned To: Ole Schwiegert
Daniel Tröder
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-01-22 15:21 CET by Christina Scheinig
Modified: 2019-03-07 15:07 CET (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
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?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019011821000721
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 Christina Scheinig univentionstaff 2019-01-22 15:21:07 CET
A teacher started an exam and named the project accidentally with a space at the end.
Now a traceback is shown in UMC and in the logfile:
/var/log/univention/management-console-web-server.log

18.01.19 00:58:27.079  MAIN        ( PROCESS ) : CPCommand (192.168.0.212:54648) response status code: 591
18.01.19 00:58:27.079  MAIN        ( PROCESS ) : CPCommand (192.168.0.212:54648) response message: Interner Server-Fehler in "schoolexam/exam/start".
18.01.19 00:58:27.079  MAIN        ( PROCESS ) : CPCommand (192.168.0.212:54648) response result: None
18.01.19 00:58:27.090  MAIN        ( PROCESS ) : CPCommand (192.168.0.212:54648) response error: {'traceback': '  File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 78, in _run\n    tmp = self._function()\n  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolexam/__init__.py", line 207, in _thread\n    my.project.validate()\n  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/distribution/util.py", line 354, in validate\n    raise ValueError(_(\'The specified project directory may not end with a space.\'))\nValueError: Das angegebene Projektverzeichnis darf nicht mit einem Leerzeichen beginnen oder enden.\n', 'command': 'schoolexam/exam/start'}
18.01.19 00:58:27.091  MAIN        ( ERROR   ) : Interner Server-Fehler in "schoolexam/exam/start".
Request: schoolexam/exam/start

  File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 78, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolexam/__init__.py", line 207, in _thread
    my.project.validate()
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/distribution/util.py", line 354, in validate
    raise ValueError(_('The specified project directory may not end with a space.'))
ValueError: Das angegebene Projektverzeichnis darf nicht mit einem Leerzeichen beginnen oder enden.

Maybe we can catch this?
Happend with 4.2-4 school 4.2 v10 and 4.3-2 ucsschool=4.3 v5
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2019-02-13 13:54:47 CET
Advisory is missing
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2019-02-13 13:55:27 CET
(In reply to Sönke Schwardt-Krummrich from comment #3)
> Advisory is missing
s/missing/incomplete/
Comment 5 Daniel Tröder univentionstaff 2019-02-13 14:50:09 CET
[4.3 4d1c8b8f0] Bug #48509: update advisory
[4.4 a91dfb7b4] Bug #48509: advisory
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2019-02-20 22:16:21 CET
UCS@school 4.3 v6 has been released.

https://docs.software-univention.de/changelog-ucsschool-4.3v6-de.html

If this error occurs again, please clone this bug.