Univention Bugzilla – Bug 54118
after an error, dry-run raises VaidationError for all subsequent users
Last modified: 2022-08-04 18:35:50 CEST
When the import is run with the import config option tolerate_errors > 0 in the dry-run, "empty errors" are raised if any error happens before. e.g. Entry #0: ValidationError when adding ImportTeacher(name='demo.teacher1', school=DEMOSCHOOL', dn='uid=demo.teacher1,cn=lehrer,...', old_dn=None) (source_uid:csv-teacher record_uid: ...): {} ValidationError({},) This happens in add + modify in ucs-school-import/modules/ucsschool/importer/mass_import/user_import.py if self.errors: raise ValidationError(user.errors.copy()) should be if user.errors: raise ValidationError(user.errors.copy())
ucs-school-import (18.0.15) cae123719efb | Bug #54118: fix dry-run raises VaidationError
Changed target milestone to 5.0 v2 errata.
6b66acadb Bug #54118: add ucs-test-ucsschool changelog a0d5e3e6f Bug #54118: advisory add version 2b087ba2e Bug #54118: advisory and changelog 124510d9c Bug #54118: fix dry-run raises VaidationError
https://git.knut.univention.de/univention/ucsschool/-/merge_requests/108
OK - merged OK - ucs-school-import.yaml OK - 18.0.18A~5.0.0.202207191615 OK - jenkins
UCS@school 5.0 v3 has been released. https://docs.software-univention.de/changelog-ucsschool-5.0v3-de.html If this error occurs again, please clone this bug.