redis-commander icon indicating copy to clipboard operation
redis-commander copied to clipboard

Unable to view keys containing \0 chars in its name

Open simonberger opened this issue 3 years ago • 3 comments

We have some Keys which contain \0000 (null) chars in its name. They are created by the PHP Symfony Framework when "tagging" keys. The keys are listed but without noticeable special chars. They cannot be selected, viewed or even deleted.

simonberger avatar Oct 20 '21 23:10 simonberger

related to #140 and #425

sseide avatar Oct 21 '21 19:10 sseide

do you have some ideas how to display these keys in the treeview when they contain invalid chars? (and the should not collide with some similar named keys...)

sseide avatar Oct 21 '21 19:10 sseide

Hi @sseide thank you for your reply and sorry for not having found #140. This could be considered as a duplicate I think even if the problem is a bit different.

do you have some ideas how to display these keys in the treeview when they contain invalid chars?

I don't know exactly what's the issue right now because no error is printed in the console, but the response form the server request looks correct (the null char is represented by its unicode digit \000). Probably it has something to do with the rendered string in the tree view can not be matched with the string in the model?

If the model keeps the correct unicode string and the matching between what I select in the treeview works (maybe not by name?) the only remaining problem would be to have some kind of non printable char representation in the treeview to see the complete string. Maybe show those non printable chars with its hex or unicode representation and highlighted with a light grey.

Something like that: \000tags\000tag1

simonberger avatar Oct 22 '21 05:10 simonberger