For sample, link directory service has a multiple type parameter "themes".
Calling ametys:serviceParameter('themes') failed when service is configured with no theme.
Indeed, the stored value is a emty String array.
But the AmetysXSLTHelper._hasParameterValueOrDefaultValue considers there is a value because the value is not null.
So then try to treat the value and call a dataHolder.getValue with a default value "" which is not a String array => ClassCastException
There is two issues here :
- the empty string array is not considered has no value. May the hasNomEmptyValue method should becomes a API method and call here
- when not specified, the serviceParamerter is called with the default value "", which is not typed, and not take into account of the multiple or not status
- Conditionne
-
LINKS-175 Service link directory thrown an error
- Closed