Skip to content
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

web-ui doesn't support UTF-8 values in kv #783

Closed
gmr opened this issue Mar 13, 2015 · 4 comments
Closed

web-ui doesn't support UTF-8 values in kv #783

gmr opened this issue Mar 13, 2015 · 4 comments
Labels
archived/webui This was used for v1/ui

Comments

@gmr
Copy link
Contributor

gmr commented Mar 13, 2015

If I paste a UTF-8 value into the content box in the kv UI for a new key, it will submit the data properly, but when viewing in Chrome or Safari, the value comes back as a different character.

If I extract the value via the API, it comes back as the correct value.

Steps to reproduce:

  1. In the Web-UI create a new key called foo with the value of
  2. Reload the page, the value will now be �
  3. Make a curl request to validate the value: curl --verbose http://localhost:8500/v1/kv/foo
  4. Take the base64 encoded value and decode it, which will yield a byte sequence of \xe2\x9c\x88, which in turn can be decoded as the proper UTF character.

Python decoding example:

import base64

print(base64.b64decode('4pyI').decode('utf-8'))
@pearkes
Copy link
Contributor

pearkes commented Mar 13, 2015

Thanks for this. Looks like this is our problem:

> window.atob("4pyI")
"�"

That decoding isn't working with the value. Tagged as a bug.

@pearkes pearkes added the type/bug Feature does not function as expected label Mar 13, 2015
@pearkes
Copy link
Contributor

pearkes commented Mar 13, 2015

Related note.

@slackpad slackpad added archived/webui This was used for v1/ui and removed type/bug Feature does not function as expected labels Nov 22, 2016
@slackpad slackpad added this to the 0.7.4 milestone Nov 22, 2016
@nodakai
Copy link

nodakai commented Feb 18, 2017

web-ui 0.7.5 seems to be handling ✈ and other advanced Unicodes such as 🍺 correctly both in a key and in a value. Debian Chrome 56 and Iceweasel (Firefox) 45.7

@slackpad slackpad removed this from the Triaged milestone Apr 18, 2017
@slackpad
Copy link
Contributor

slackpad commented May 2, 2017

Hey there,

We are currently hiring for a full time position to manage the Consul UI. They are going to do a full revamp, so we'll make sure this is included then!

@slackpad slackpad closed this as completed May 2, 2017
duckhan pushed a commit to duckhan/consul that referenced this issue Oct 24, 2021
* Add controller.aclToken to provide a pre-generate ACL token to the controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived/webui This was used for v1/ui
Projects
None yet
Development

No branches or pull requests

4 participants