HI all,

in 2.1.7, language id having a "_" in their name (like "fr_CA") makes schemas 
not editable and leads to an exception:

In the same way, impossible to create a label for these languages.



java.lang.ArrayIndexOutOfBoundsException: 2
at org.apache.syncope.common.lib.to.SchemaTO.toLocale(SchemaTO.java:63)
at 
org.apache.syncope.client.console.panels.SchemaTypeWizardBuilder$Labels.lambda$new$0(SchemaTypeWizardBuilder.java:139)
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at 
org.apache.syncope.client.console.panels.SchemaTypeWizardBuilder$Labels.<init>(SchemaTypeWizardBuilder.java:138



It works well in 2.1.6.

When trying to add a label for these kind of language the REST payload looks 
weird like:



{"@class":"org.apache.syncope.common.lib.to.PlainSchemaTO","key":"test","anyTypeClass":null,"labels":{"fr;CA;":"test"},"type":"String","mandatoryCondition":"false","multivalue":false,"uniqueConstraint":false,"readonly":false,"conversionPattern":null,"validator":null,"enumerationValues":"","enumerationKeys":"","secretKey":null,"cipherAlgorithm":null,"mimeType":null}

Reply via email to