Univention Bugzilla – Bug 50379
Teacher import marks all following as errors after incorrect line
Last modified: 2023-10-26 14:43:20 CEST
The customer noticed, when importing a teacher file an error occurs. What is important here: All following entries of the import file are displayed as "ValidationError". After re-sorting the import file and the erroneous entry is at the end, only an error is noted. The "expected" behavior would actually be that the importer would handle the lines following the error "quite normally
We need the imported CSV file to analyse the problem.
(In reply to Daniel Tröder from comment #2) > We need the imported CSV file to analyse the problem. The customer attached the files in the ticket. Can you please get them from there.
OK - there is definitively something wrong. The initial WrongObjectClass error happens, because the customer changed the users objectClass, but didn't remove it from an import restricted to the previous user role. So that error is correct. But importing any user after that fails with (data anonymisied): ---------------------------------------------------------------- Entry #0: ValidationError when modifying ImportTeacher(name='...', school='...', dn='uid=...,cn=lehrer,cn=users,ou=...,dc=...,dc=...') (source_uid:... record_uid: ...): {} ValidationError({},) Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/user_import.py", line 186, in create_and_modify_users raise ValidationError(user.errors.copy()) ---------------------------------------------------------------- The >>ValidationError({},)<< is strange. This happened is the dry-run of a SiSoPi scenario. Configuration and log are in the ticket.
This issue has been filed against UCS@school 4.4. UCS@school 4.4 is out of maintenance and components may have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.