Univention Bugzilla – Bug 31302
required=1 is not enforced on multivalue extended attributes
Last modified: 2013-11-19 06:41:53 CET
root@mas10:~/ucs-test# udm settings/extended_attribute create \ --set name="sometest" \ --set shortDescription="sometest" \ --set CLIName="sometest" \ --set module="computers/windows" \ --set objectClass="univentionFreeAttributes" \ --set ldapMapping="univentionFreeAttribute15" \ --set valueRequired="1" \ --set multivalue="1" \ --position="cn=custom attributes,cn=univention,dc=lwadev,dc=lwaqa" Object created: cn=sometest,cn=custom attributes,cn=univention,dc=lwadev,dc=lwaqa root@mas10:~/ucs-test# udm computers/windows create --set name="test-win" Object created: cn=test-win,dc=lwadev,dc=lwaqa
When this bug is fixed, the test "68_udm-extendedattribute/62_check_multivalue_extented_attribute_required" should be enabled again.
CLI only problem (UMC seems to have an additional mechanism to check whether all required proertpies are given). Caused by list type properties which are not actually empty, but containing an empty string (['']). Therefore, I have added an other checking routine for which will be used for list types. Test renabled.
OK -> udm computers/windows create --set name="test-win" E: Insufficient information The following parameters are missing: sometest -> udm computers/windows create --set name="test-win" --set sometest=sada Object created: cn=test-win,dc=test,dc=fb -> udm computers/windows list DN: cn=test-win,dc=test,dc=fb ARG: None domain: None sometest: sada network: None OK - Changelog
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".