Univention Bugzilla – Bug 39882
Broken validation for MultiInput fields - DNS SRV record for example
Last modified: 2021-04-27 10:45:50 CEST
When adding a now DNS SRV RR, the 3rd fields "Extension" is marked with an asterisk as required; it even turns red when not entered. But the record can still be created when saving. Extension is some MS extension used fro "ForestDnsZones" and "Default-First-Site-Name._sites.ForestDnsZones", but not required otherwise.
http://forum.univention.de/viewtopic.php?f=67&t=4780#p18612
This is not easy to fix as the widget is only a subsyntax of a MultiInput which inherits the 'required' flag from the parent property description. There is no way to defined the 'required' flag at the syntax class.
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Problem persists with UCS-4.4
Created attachment 9871 [details] Screenshot UMC DNS Module for SRV There also seems to be a problem that an error in *one* sub-field is propagated to an error message for *all* fields: > class dnsSRVLocation(complex): > subsyntaxes = [(_('Priority'), integer), (_('Weighting'), integer), (_('Port'), integer), (_('Server'), dnsHostname)] "Server" clearly is not of type "integer", but nevertheless flagged as containing an error with "Value must be a number!".
Still with UCS 5.0-0