Univention Bugzilla – Bug 32409
UDM module settings/udm_module
Last modified: 2013-11-19 06:41:56 CET
A new UDM module udm/module is required for Bug 32407 and Bug 32408.
The module is implemented as settings/udm_module. Changelog committed.
OK: changelog entry FAIL: the module accepts all types of UCS versions: root@master80:~# udm settings/udm_syntax create --set name=FOO4 --set filename=FOO2.py --set data='QlpoORdyRThQkAAAAAA=' --set package=FOO --set packageversion=1.0.0-0 --set ucsversionstart=DING --set ucsversionend=FOOBAR Object created: cn=FOO4,dc=nstx,dc=local OK: changes to the object are only allowed if the old package version is smaller/equal to the new package version (if the version is modified) OK: renaming of objects OK: name, filename, data, package, packageversion, appid
Fixed by using UCS_Version from univention.updater.tools.
(In reply to Arvid Requate from comment #3) > Fixed by using UCS_Version from univention.updater.tools. Missing / circular dependency: Package: univention-updater Depends: python-univention-lib $ grep -n import.*UCS_Ver univention-lib/python/* univention-lib/python/ldap_extension.py:12:from univention.updater import UCS_Version
Circular dependency fixed by copying the UCS_Version definition to python-univention-lib. Bug 32821 was crated to cleanup the code.
This currently breaks the UMC: univention-lib/python/umc_module.py imports the Python module "magic", but no dependency on python-magic is declared.
(In reply to Moritz Muehlenhoff from comment #6) > This currently breaks the UMC: > > univention-lib/python/umc_module.py imports the Python module "magic", but > no dependency on python-magic is declared. I've added the dependency because this breaks all my tests (r45009). @Arvid, feel free to re-change.
Ok, needed to fix a couple of the new UDM syntaxes to be mappable by UMC-module/udm/syntax.
Added a workaround for an import error in syntax.py due to delayed pysupport call during update.
I got the following error during the 3.2 upgrade: root@master501:~# /usr/share/univention-directory-manager-tools/univention-cli-server Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 42, in <module> import univention.admincli.adduser File "/usr/lib/pymodules/python2.6/univention/admincli/adduser.py", line 39, in <module> import univention.admin.config File "/usr/lib/pymodules/python2.6/univention/admin/config.py", line 33, in <module> import univention.admin.modules File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 44, in <module> import univention.admin.syntax File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 448, in <module> from univention.lib.umc_module import get_mime_type, get_mime_description, image_mime_type_of_buffer ImportError: No module named umc_module
*** Bug 33007 has been marked as a duplicate of this bug. ***
* Added the same workaround as before (try:/except ImportError: pass) in python-udm * Added a missing dependency of python-umc on python-udm * Added versioned dependency of python-udm on (univention-ldap-server | univention-server-member | univention-basesystem) I checked the update of a Master and a Memberserver. * While I was at it I generalized the versioned dependency of shell-univention-lib on python-univention-lib (= ${binary:Version})
OK, the tests were successful.
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".