apolloconfig / apolloconfig/apollo

通过Apollo open API操作key中包含“/”的配置,操作失败

Open
#2,876 12 comments 0 reactions 0 assignees View on GitHub
tips
Dominant language
Java
Stars
29.8k
Forks
10.2k
Avg merge
4d 7h
Merged PRs (30d)
4

Description

原因:
1. client 中代码:String path = `String.format("envs/%s/apps/%s/clusters/%s/namespaces/%s/items/%s",
escapePath(env), escapePath(appId), escapePath(clusterName), escapePath(namespaceName),
escapePath(itemDTO.getKey()));`对key进行了转义;
2. server 中代码:没有进行转义;
现象就是:获取配置、更新配置、删除配置报错。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.