in src/main/java/org/apache/sling/caconfig/impl/override/OverrideStringParser.java [240:262]
private static boolean isValid(OverrideItem item, String overrideString) {
if (item.getPath() != null && (!StringUtils.startsWith(item.getPath(), "/") || StringUtils.contains(item.getPath(), ".."))) {
log.warn("Ignore config override string - invalid path: {}", overrideString);
return false;
}
if (StringUtils.startsWith(item.getConfigName(), "/") || StringUtils.contains(item.getConfigName(), "..")) {
log.warn("Ignore config override string - invalid configName: {}", overrideString);
return false;
}
for (Map.Entry<String, Object> entry : item.getProperties().entrySet()) {
String propertyName = entry.getKey();
if (StringUtils.isEmpty(propertyName) || StringUtils.contains(propertyName, "/")) {
log.warn("Ignore config override string - invalid property name ({}): {}", propertyName, overrideString);
return false;
}
Object value = entry.getValue();
if (value == null || !isSupportedType(value)) {
log.warn("Ignore config override string - invalid property value ({} - {}): {}", value, value != null ? value.getClass().getName() : "", overrideString);
return false;
}
}
return true;
}