Univention Bugzilla – Bug 32405
Listener module for replication of UDM Syntax extensions
Last modified: 2014-04-15 19:32:40 CEST
A listener module for the replication of UDM Syntax extensions should be implemented, * running on UCS Master, Backup, Slave and Memberservers * filtering for a specific objectClass representing UDM Syntax extensions * writing the value of an LDAP attribute "univentionUDMSyntax" * to a file specified by another LDAP attribute "univentionUDMSyntaxFilename" * below the directory /usr/share/pyshared/univention/admin/syntax.d * It must not overwrite newer versions by older versions. * It updates the python Links e.g. by calling update-python-modules -p These extension objects are created by metapackage joinscripts using a univention-lib function.
Implemented as part of listener udm_extension shipped by the package python-univention-directory-manager. Changelog committed.
udm_extension.py contains some typos (UCS vs. UCR): → current_UCR_version="%s-%s" % (listener.configRegistry.get('version/version'), listener.configRegistry.get('version/patchlevel')) → if univentionUCSVersionStart and current_UCR_version<univentionUCSVersionStart: → extension %s requires at least UCR version %s. → REOPEN ucsversionend should be inclusive → separated into see Bug 32676 → found by ucs-test 21_listener_version_start_end → REOPEN
The UCS version comparison is implemented as simple string comparison: >>> '3.2-1' < '3.10-2' False >>> '3.2-9' < '3.2-10' False → REOPEN
Ok, fixed by using the UCS_Version class from univention.updater.tools.
Changelog + Test cases + Tests: OK
UCS 3.2 has been released: http://docs.univention.de/release-notes-3.2-en.html http://docs.univention.de/release-notes-3.2-de.html If this error occurs again, please use "Clone This Bug".