Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Fails to retrieve keyValue in folder by key #443

@dschulten

Description

@dschulten

Consul allows to organize keyValues in folders, which then become part of the URL path.

In the example kv url below, resources/ is a kv folder and my.key is an actual keyValue pair.

http://consul.example.com/v1/kv/resources/my.key

Unfortunately KeyValueClient.getValue() urlencodes a key with folder prefix such as resources/my.key and requests

/v1/kv/resources%2fmy.key

which fails with 404.

The same problem occurs with KeyValueClient.getValues() for a path of folders, as in getValues("resources/subfolder").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions