From: Shiraz M. <a....@fz...> - 2018-05-15 09:13:23
|
Hi Krzysztof, All, When an attribute is defined (under schema management) with the minimum length equals 0 and set as mandatory in the registration form, then unity should not let the user submit the registration form, if the field is left empty by the user. Conversely another attribute is defined with minimum length equals greater than 0 (e.g. 2) and set as optional in the registration form, then the form should be successfully submitted and accepted without any error dialogs/pop-ups. In a nutshell, the registration forms should override the field optionality defined in the schema management, what do you think? Cheers, Shiraz On Sun, May 13, 2018 at 8:34 PM Krzysztof Benedyczak <kb...@un...<mailto:kb...@un...>> wrote: Hi Shiraz, W dniu 09.05.2018 o 13:49, Shiraz Memon pisze: Hi, Unity (v2.4.2) is not accepting/submitting any registration form which has "optional" attributes of type string, BUT the minimum length is set to above zero (0) under schema management. Moreover the error which only appears on pop-up (not in the logs) is misleading as it does not say which "optional" attribute is suppose to be non-zero, if the multiple non-mandatory attributes are defined. "can not submit the registration request Value lenght(0) is too small, must be at least 2." Hmm - I can notice problem but only on acceptance (processing) of an already submitted request. Can you describe how you got the error upon submission? From your description it seems that you was able both to get this upon submission and when processing the request. A work around: Set minimum length of the non-mandatory/optional attributes of type string set to 0 under the schema management tab and ask the users to register again. I have not tested the inverse case: configure an attribute with minimum length to '0' but make it mandatory in the registration form Seems we will have to re-think support for 0-length values. It makes little sense in practice but lot of troubles as missing value and 0-length value are "hard" to distinguish. I've opened a ticket to cover this. Won't make it for the upcoming 2.5.0, but at least the error message upon accepting the request was improved so you get the name of the problematic attribute (and so you can ignore it). Cheers, Krzysztof -- Shiraz Memon Federated Systems and Data Jülich Supercomputing Centre (JSC) Phone: +49 2461 61 6899 Fax: +49 2461 61 6656 ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ |