Univention Bugzilla – Bug 33686
syntax classes min_length, max_length not evaluated
Last modified: 2020-06-22 16:55:29 CEST
In syntax.py exists many syntax classes which have an attribute max_length or min_length. The only syntax class where this is evaluated is "passwd". The attributes should either be removed or implemented in the base class "simple". These syntax classes are affected: languageCode emailAddressTemplate uid v4netmask hostName boolean integer FourThirdsString Localesubdirname userAttributeList TextArea UCSVersion absolutePath Base64Bzip2XML gid filesize HalfString OneAndAHalfString hostOrIP windowsHostName string OneThirdString policyName passwd uid_umlauts IA5string phone BaseFilename FiveThirdsString Base64GzipText date TwoThirdsString printerName GNUMessageCatalog listAttributes Base64Bzip2Text DebianPackageVersion UvmmCapacity Base64UMCIcon uid_umlauts_lower_except_first_letter
Two examples: >>> univention.admin.syntax.emailAddressTemplate.min_length 4 >>> univention.admin.syntax.emailAddressTemplate.parse('@') '@' >>> univention.admin.syntax.v4netmask.max_length 15 >>> univention.admin.syntax.v4netmask.parse('255.255.255.000255') '32'