apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.29k stars 1.16k forks source link

[Feature][configration] fix reading configuration containing space errors #4926

Closed v-kkhuang closed 9 months ago

v-kkhuang commented 11 months ago

需求背景

当配置文件配置值不是 string 时, 如果配置值包含了空格,会导致读取配置失败

目标

当配置文件配置值不是 string 时, 如果配置值包含了空格,读取配置成功,并且正常使用

处理方案

读取配置时去除前后空格,trim


Requirement background

When the configuration file configuration value is not a string, if the configuration value contains spaces, it will cause reading the configuration to fail

Goal

When the configuration file configuration value is not a string, if the configuration value contains spaces, the read configuration is successful and is used normally

Processing plan

Remove leading and trailing spaces when reading configuration, trim

github-actions[bot] commented 11 months ago

:blush: Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our website project, please let us know! You can check out our contributing guide on :point_right: How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive