mgduoduo commented on issue #7135:
URL:
https://github.com/apache/dolphinscheduler/issues/7135#issuecomment-987522604
i got the cause. the additional parameters is below
```
{"SSL":"true","SSLTrustStorePath":"/opt/presto-ssl/presto_keystore.jks","SSLTrustStorePassword":"***"}
```
The PARAMS_PATTER should be ```[a-zA-Z0-9\\-\\_\\/]+```, but there is a DOT
```.``` in parameter ```/opt/presto-ssl/presto_keystore.jks```, which is
invalid.
org.apache.dolphinscheduler.common.datasource.AbstractDatasourceProcessor#checkOther
``` java
private static final Pattern PARAMS_PATTER =
Pattern.compile("^[a-zA-Z0-9\\-\\_\\/]+$");
// ...
protected void checkOther(Map<String, String> other) {
if (MapUtils.isEmpty(other)) {
return;
}
boolean paramsCheck = other.entrySet().stream().allMatch(p ->
PARAMS_PATTER.matcher(p.getValue()).matches());
if (!paramsCheck) {
throw new IllegalArgumentException("datasource other params
illegal");
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]