Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg数据源密码不支持%号 #2394

Open
taolx0 opened this issue Apr 26, 2024 · 0 comments
Open

pg数据源密码不支持%号 #2394

taolx0 opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@taolx0
Copy link
Collaborator

taolx0 commented Apr 26, 2024

版本信息(Version)

2.2306-ee
main

问题描述(Describe)

创建pg数据源,如果密码带%号,测试数据源连接失败

截图或日志(Log)

image

返回response信息

{
    "code": 0,
    "message": "ok",
    "data": {
        "is_instance_connectable": false,
        "connect_error_message": "open plugin: rpc error: code = Unknown desc = init config: get database connection failed when new driver: failed to connect to `host=[10.186.62.34](http://10.186.62.34/) user=ops2 database=postgres`: failed SASL auth (FATAL: password authentication failed for user \"ops2\" (SQLSTATE 28P01))"
    }
}

如何复现(To Reproduce)

  1. 创建一个密码带%的账户
    image

  2. 打开sqle,创建该数据源,点击测试数据库连通性,连接失败
    image

实现方案

变更影响面

受影响的模块或功能

外部引用的潜在问题或风险

版本兼容性

测试建议

@taolx0 taolx0 added the bug Something isn't working label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants