internetitem/logback-elasticsearch-appender

密码带@符号时无法正常解析url

mjwyr opened this issue · 2 comments

mjwyr commented

image
有解决方式吗,还是只能改密码

That does appear to be the case, but due to the way that URLs are parsed (outside of this library). PRs are welcome (as would release testing help) - I suppose to allow the username and password to go into their own attributes.

如果密码中包含@,可以通过在headers里增加Authorization,换种方式实现es的认证,其中value是通过Basic Auth加密后的字符串,可以通过postman查找。如下,已测试通过。

#header#
#name#Authorization#/name#
#value#Basic xxxxxx#/value#
#/header#
,#替换成><