Skip to content

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

Open
@rabbitgyk

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 中代码:没有进行转义;
    现象就是:获取配置、更新配置、删除配置报错。

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status

      OpenApi

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions