docker / libkv

Distributed key/value store abstraction library
Apache License 2.0
853 stars 205 forks source link

Paths cannot have leading "/" character #155

Open sybrandy opened 7 years ago

sybrandy commented 7 years ago

Hello,

I was working with Traefik and I was having issues with it pulling configuration information from Zookeeper. I narrowed it down to this code (an older version) and discovered that if I had a leading "/" on the path, it would fail. The current code looks to be the same for the normalization of the paths, so the "bug" is still there.

Barring a good reason why this behaviour should remain, I'd like to suggest that the code be updated to allow for a leading "/" to be provided as, at least with zookeeper, is the standard way of referencing paths.