Univention Bugzilla – Bug 46754
[4.2] ucs-school-import: dependency solver for formatting ImportUser properties
Last modified: 2018-06-04 15:34:08 CEST
Merge changes to UCS@school 4.3 back into 4.2. +++ This bug was initially created as a clone of Bug #42137 +++ This bug was originally created because currently recordUID and sourceUID are created before any other ImportUser attribute. This prevents the usage of other attributes that must be calculated (are not in the CSV input) in them (for example "<username>"), if not given in the CSV. That is actually a more generell problem: all properties can be created from other properties - including those also being generated. But the order of property creation/formatting is currently fixed, effectively allowing formatting only from data given in the CSV input. The attached completely untested(!) patch implements a recursive dependency solver for all properties.
Code changes from Bug #42137 merged. [4.2] 25059622 Bug #46754: add recursive dependency solver for formatting ImportUser properties [4.2] f7cee8ed Bug #46754: tests for format dependency solver [4.2] 797215f1 Bug #46754: tests for format dependency solver [4.2] fc9c9f94 Bug #46754: changelog [4.2] 52df74ed Bug #46754: advisory ucs-school-import (15.0.3-29) ucs-test-ucsschool (4.0.4-78)
*** Bug 46707 has been marked as a duplicate of this bug. ***
[4.2] fac7ed74 Bug #46754: raise exception instead of log warning [4.2] d610dfec Bug #46754: test no user is created or deleted in case of dependency recursion [4.2] ba5cc8af Bug #46754: changelog ucs-school-import (15.0.3-31) ucs-test-ucsschool (4.0.4-81)
Same as bug 42137 comment 4
[4.2] 04e2e66c Bug #46754: handle dependency resolution for UDM properties [4.2] a35bbf59 Bug #46754: test formatting dependencies with and without UDM properties [4.2] ee34cd81 Bug #46754: changelog [4.2] d6422e4a Bug #46754: advisory update ucs-school-import (15.0.3-33) ucs-test-ucsschool (4.0.4-82)
[4.2] 9f45d9ed Bug #46754: query UDM for LDAP mapping without using LDAP and don't cache result [4.2] f9352afa Bug #46754: changelog [4.2] 37c08e3c Bug #46754: advisory update
see Bug 42137
The attributes school, record_uid, source_uid are extended attributes and are resolved. Anyway - I added a fresh extended attributes that is not already mapped by the ucsschool.lib. [4.2] e59b7e98 Bug #46754: create, format and depend on not-ucsschool-lib-mapped extended attribute [4.2] bb087793 Bug #46754: changelog ucs-test-ucsschool (4.0.4-85)
Tests look good -> OK jenkins -> OK YAML -> OK Import works -> OK -> Verified
UCS@school 4.2 v9 has been released. https://docs.software-univention.de/changelog-ucsschool-4.2v9-de.html If this error occurs again, please clone this bug.