echoma / zkui

zkui is a GUI client of Apache ZooKeeper. Download:
https://github.com/echoma/zkui/wiki/Download
Apache License 2.0
297 stars 52 forks source link

Crash when trying to open node that contains binary data #8

Open fortitudepub opened 8 years ago

fortitudepub commented 8 years ago

I have a zookeeper cluster that have node contains binary data (protobuf encoded binary data), when I am trying to open node that contains binary data, zkui crashed with the following exception on the console:

Traceback (most recent call last): File "/home/hzzhangdongya/Work/zkui-1.1/WebWindow.py", line 221, in jsZkGet data = ret[0].decode('utf8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 82: invalid start byte

echoma commented 8 years ago

Obviously, zkui was trying to show binary as plain text, decodeError occured during covertion. Maybe we should show binary data as HEX string.

wrouesnel commented 7 years ago

The ideal solution would be switch into a hex-editor type view.