Bug 54908 - Javascript widget should check exam name | ValueError: Das angegebene Projektverzeichnis darf nicht mit einem "." beginnen oder enden.
Javascript widget should check exam name | ValueError: Das angegebene Projekt...
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v9-errata
Assigned To: Johannes Königer
Johannes Keiser
https://git.knut.univention.de/univen...
:
Depends on: 52719
Blocks:
  Show dependency treegraph
 
Reported: 2022-06-28 17:27 CEST by Johannes Königer
Modified: 2022-08-17 17:14 CEST (History)
9 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.229
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020091821000258, 2022052321000368
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 Johannes Königer univentionstaff 2022-06-28 17:27:36 CEST
+++ This bug was initially created as a clone of Bug #52719 +++

Version: 4.4-4 errata648 (Blumenthal) - UCS@school 4.4 v5

Remark: Fehler beim Speichern einer Klassenarbeit

Error:
Interner Server-Fehler in "schoolexam/exam/add".
Request: schoolexam/exam/add

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/schoolexam/__init__.py", line 369, in add
    self._save_exam(request)
  File "%PY2.7%/ucsschool/lib/school_umc_ldap_connection.py", line 123, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/schoolexam/__init__.py", line 290, in _save_exam
    project.validate()
  File "%PY2.7%/univention/management/console/modules/distribution/util.py", line 375, in validate
    raise ValueError(_('The specified project directory may not start nor end with a ".".'))
ValueError: Das angegebene Projektverzeichnis darf nicht mit einem "." beginnen oder enden.

Role: domaincontroller_slave
Comment 2 Tobias Wenzel univentionstaff 2022-07-16 12:34:42 CEST
changed target milestone to 4.4 9 errata
Comment 4 Johannes Keiser univentionstaff 2022-07-20 12:39:53 CEST
OK: Invalid directory name detected on SAVE and START
OK: yaml
-> can be merged and built
Comment 5 Johannes Königer univentionstaff 2022-07-21 07:54:14 CEST
Merged with 35ed7707, Backport from Bug #52719:
* The front-end recognizes now all invalid exam directory names
* Any incorrect exam directory name will be detected by the backend and an appropriate error message is shown
* The tool-tip for the validation textbox includes that spaces or "." are not allowed at the start or end of the name
Comment 6 Tobias Wenzel univentionstaff 2022-08-17 17:14:33 CEST
Errata updates for UCS@school 4.4 v9 have been released.

https://docs.software-univention.de/changelog-ucsschool-4.4v9-de.html

If this error occurs again, please clone this bug.