zkui icon indicating copy to clipboard operation
zkui copied to clipboard

Crash when trying to open node that contains binary data

Open fortitudepub opened this issue 8 years ago • 2 comments

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

fortitudepub avatar Jun 23 '16 09:06 fortitudepub

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

echoma avatar Jun 24 '16 00:06 echoma

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

wrouesnel avatar Oct 31 '16 04:10 wrouesnel