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

undesired url-encoding of nested keys in kv #355

Open
koiuo opened this issue Sep 5, 2018 · 0 comments
Open

undesired url-encoding of nested keys in kv #355

koiuo opened this issue Sep 5, 2018 · 0 comments

Comments

@koiuo
Copy link

koiuo commented Sep 5, 2018

Steps to reproduce:

    kvApi.getValues("/foo/bar")

Expected result:
request is made to

<consul_host>/v1/kv/foo/bar?recurse=true

Actual result:
request is made to

<consul_host>/v1/kv/foo%2Fbar?recurse=true

Thus its impossible to read a nested key from consul KV.
Perhaps I'm missing something and there is a way to get value of a nested key, I'd appreciate if you explained or pointed to documentation.

Thanks

Update: consul documents separator parameter in its API, but either I misunderstood intention behind it, or there's a bug where it is ignored
hashicorp/consul#4634

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant