Univention Bugzilla – Bug 49556
ImportUser doesn't execute shell hooks if used without import job
Last modified: 2019-06-26 14:19:23 CEST
When used directly (not as part of an import job), ImportUser.build_hook_line() will return None, because self.input_data is empty.
This fixes it: [dtroeder/49556_ImportUser_hooks_without_import 9cf157da0] Bug #49556: run shell hooks when ImportUser is used without an import job ucs-test that fails without above patch: [4.4 ca2b98e81] Bug #49556: check execution of shell hooks QA: please reopen for merge and build.
Code change was merged into 4.4 to fix failing test 90_ucsschool/82_legacy_hooks. [4.4] 9c36b5d0a Bug #49556: run shell hooks when ImportUser is used without an import job [4.4] ddc16eb0e Bug #49556: Merge branch 'dtroeder/49556_ImportUser_hooks_without_import' into 4.4 [4.4] bab11c724 Bug #49556: changelog, advisory [4.4] ebe1826a0 Bug #49556: advisory update ucs-school-import (17.0.6-22)
What I tested: 82_legacy_hooks -> OK 201_import-users_basic -> OK YAML -> OK Verified
UCS@school 4.4 v2 has been released. https://docs.software-univention.de/changelog-ucsschool-4.4v2-de.html If this error occurs again, please clone this bug.