Fix that chunked string is incorrect while the tag contains colon (#5818)

This commit is contained in:
Xin,Zhang 2020-11-10 14:14:01 +08:00 committed by GitHub
parent 52b056a737
commit 4a01f80ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -39,6 +39,7 @@ Release Notes.
* Fix CVE in the uninstrumented gateways configs, when activating the dynamic configuration feature.
* Fix CVE in the Apdex threshold configs, when activating the dynamic configuration feature.
* Make the codes and doc consistent in sharding server and core server.
* Fix that chunked string is incorrect while the tag contains colon
#### UI
* Fix incorrect label in radial chart in topology.

View File

@ -194,8 +194,8 @@ public abstract class AvgHistogramPercentileFunction extends Metrics implements
dataset.keys().stream()
.map(key -> {
if (key.contains(":")) {
String[] kk = key.split(":");
return Tuple.of(kk[0], key);
int index = key.lastIndexOf(":");
return Tuple.of(key.substring(0, index), key.substring(index + 1));
} else {
return Tuple.of(DEFAULT_GROUP, key);
}