New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consul kv import @a-file.json change behavior since 1.10.0 #10906
Comments
Correctly import keys names that end in a trailing slash. Fixes #10906
I think there is a possible bug in the The export of a recursive "folder" produces an entry with the trailing slash, like so:
For my case, the |
Hi @shantanugadgil, I'm not able to reproduce the behavior you described with Consul 1.9.13, 1.10.6, or 1.11.1, unless I explicitly create the
Can you verify that your top-level key was not manually created through some other means? If it is present and you don't need it, you can safely remove it from the KV store without affecting the ability to retrieve the other keys from the CLI or UI. |
@blake this indeed seems to be the case; when the I tried to reproduce the issue using the webui, and this gets all the more confusing as it violates WYSIWYG. I feel there is more buggy behavior that easily visible. Steps to repro via webui:
I feel, seeing only the Also, if I do fill in some data when I see the Value box in step 5, it gets saved correctly, but not visible in the webui anywhere |
Thanks @shantanugadgil - I was able to reproduce using your steps and filed a new GH issue for that GUI behavior (#12073). |
Overview of the Issue
consul kv import @a-file.json change behavior since 1.10.0. The 1.9.8 and older versions treat "service/importtest/" (with slash at the end) as a key, but 1.10.x treat "service/importtest/" as "service/importtest", the tail slash is missing.
Reproduction Steps
Steps to reproduce this issue, eg:
consul kv import @test.json
Consul info for both Client and Server
Operating system and Environment details
consul cluster running consul 1.9.5, Ubuntu server
consul cli running in MacOS 11.5.2, intel
The text was updated successfully, but these errors were encountered: