Bug 33686 - syntax classes min_length, max_length not evaluated
syntax classes min_length, max_length not evaluated
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-09 12:19 CET by Florian Best
Modified: 2020-06-22 16:55 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2013-12-09 12:19:38 CET
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
Comment 1 Florian Best univentionstaff 2013-12-09 12:23:33 CET
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'