Univention Bugzilla – Bug 42466
Wrong use of UCR might lead to crash
Last modified: 2017-07-05 13:06:31 CEST
management/univention-management-console-module-udm/umc/python/udm/syntax.py: 131 » » » subclasses = ucr.is_true(None, props.get('subclasses', 'false').lower(), False) leads to this error: File "/usr/lib/pymodules/python2.7/univention/config_registry/backend.py", line 252, in is_true return value.lower() in ('yes', 'true', '1', 'enable', 'enabled', 'on') AttributeError: 'bool' object has no attribute 'lower' Switch the arguments and it is fixed.
(In reply to Florian Best from comment #0) > management/univention-management-console-module-udm/umc/python/udm/syntax.py: > 131 » » » subclasses = ucr.is_true(None, props.get('subclasses', > 'false').lower(), False) > > leads to this error: > File "/usr/lib/pymodules/python2.7/univention/config_registry/backend.py", > line 252, in is_true > return value.lower() in ('yes', 'true', '1', 'enable', 'enabled', 'on') > AttributeError: 'bool' object has no attribute 'lower' > > Switch the arguments and it is fixed. Applied patch: r 80794 univention-management-console-module-udm (7.0.10-15) * Bug #42466: Applied patch from Florian Best - Fix wrong use of ucr.is_true() YAML: r 80795
OK: code is fixed YAML: OK (adjusted in r80796)
<http://errata.software-univention.de/ucs/4.2/83.html>