Extra space in front of a string key


I have created an entity with a string key but with the space in the front.
set port " ABC"

However I am not able to delete it. It seems when I try to read it in the data handler it fails to get the entity.

devel-c delete error {application, " Not able to read port ABC data.“} for callpoint port_hook path /port{” ABC"}

The problem does not happen when there is no space in the front.

Any help is greatly appreciated. thanks.

I suggest you investigate your application’s log. Supposedly it does some kind of string manipulation that swallows blank space; or possibly, there is a ConfD API call that is prone to this kind of error, but from the top of my head I am not aware of anything like that.