We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
good
dubbo.metadata-report.address=redis://default:123456@11.6.0.4:6379
bad
dubbo.metadata-report.address=redis://11.6.0.4:6379 dubbo.metadata-report.username=default dubbo.metadata-report.password=123456
error
Caused by: redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required.
https://github.com/apache/dubbo/blob/3.0/dubbo-common/src/main/java/org/apache/dubbo/config/MetadataReportConfig.java
public URL toUrl() throws IllegalArgumentException { String address = this.getAddress(); if (isEmpty(address)) { throw new IllegalArgumentException("The address of metadata report is invalid."); } Map<String, String> map = new HashMap<String, String>(); URL url = URL.valueOf(address); // Issue : https://github.com/apache/dubbo/issues/6491 // Append the parameters from address map.putAll(url.getParameters()); // Append or overrides the properties as parameters appendParameters(map, this); // Normalize the parameters map.putAll(convert(map, null)); // put the protocol of URL as the "metadata" map.put("metadata", url.getProtocol()); return new URL("metadata", url.getUsername() == null ? this.getUsername() : url.getUsername(), url.getPassword() == null ? this.getPassword() : url.getPassword(), url.getHost(), url.getPort(this.getPort()), url.getPath(), map); }
The text was updated successfully, but these errors were encountered:
fix #9910, metadata-report support a separate configuration username …
7c72487
…and password (#9912) Co-authored-by: 呈铭 <beck.wcm@antgroup.com>
fix apache#9910, metadata-report support a separate configuration use…
75fb930
…rname and password
8d9e252
…and password (#9921)
Fix can't authenticate by username and password when use Nacos (#9941)
9efe21a
#9910
Successfully merging a pull request may close this issue.
Environment
config
good
bad
error
How to Fix?
https://github.com/apache/dubbo/blob/3.0/dubbo-common/src/main/java/org/apache/dubbo/config/MetadataReportConfig.java
current
After Fix
The text was updated successfully, but these errors were encountered: