From: Krzysztof B. <kb...@un...> - 2018-05-13 18:34:24
|
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 |