Univention Bugzilla – Bug 41707
Import tool is unable to use extended attributes
Last modified: 2016-10-06 21:15:20 CEST
2016-06-03 23:12:22 ERROR user_import.read_input:90 Error reading 1. user: Unknown UDM property: 'nwnsw9c70c'. Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/user_import.py", line 84, in read_input import_user = self.reader.next() File "/usr/lib/pymodules/python2.7/ucsschool/importer/reader/base_reader.py", line 75, in next cur_import_user = self.map(input_dict, cur_user_roles) File "/usr/lib/pymodules/python2.7/ucsschool/importer/reader/csv_reader.py", line 186, in map import_user=import_user) UnknownProperty: Unknown UDM property: 'nwnsw9c70c'. "nwnsw9c70c" is an extended attribute.
In ucs-school-import/modules/ucsschool/importer/reader/csv_reader.py the users/user module has not been initialized, so extended attributes were not available in module's property_descriptions. Fixed ucs-school-import, added test in 90_ucsschool/34_import-users_via_cli_v2 ucs-school-import.yaml: r70724 | Bug #41707: added support for extended attributes in csv_reader ucs-test-ucsschool (3.0.12-15): r70726 | Bug #41707: added changelog entry r70725 | Bug #41707: add test for extended attributes ucs-school-import (14.0.15-1): r70724 | Bug #41707: added support for extended attributes in csv_reader
OK: code change OK: advisory (build fixed in r70769) OK: automatic test
UCS@school 4.1 R2 v2 has been released. If this error occurs again, please clone this bug.
Test for this bug is in 90_ucsschool/34_import-users_via_cli_v2 test_create_modify_with_extended_attribute().