Univention Bugzilla – Bug 48509
Starting an exam with a space at the end of a projectname should not show a traceback
Last modified: 2019-03-07 15:07:51 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
Advisory is missing
(In reply to Sönke Schwardt-Krummrich from comment #3) > Advisory is missing s/missing/incomplete/
[4.3 4d1c8b8f0] Bug #48509: update advisory [4.4 a91dfb7b4] Bug #48509: advisory
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.