Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using map names with forward slashes (/ character) returns empty childData #100

Open
doctorpangloss opened this issue Jul 7, 2020 · 2 comments
Labels

Comments

@doctorpangloss
Copy link

Version

vertx-hazelcast:3.9.1

Context

key = childData.getPath().substring(mapPath.length() + 1).split("/", 2);

Observe that if the user supplies a map key that contains forward slashes, empty data will be returned from Zookeeper due to this split.

Do you have a reproducer?

Simply create a map named Test/map.

@doctorpangloss doctorpangloss changed the title Using map key paths with forward slashes (/ character) returns empty childData Using map names with forward slashes (/ character) returns empty childData Jul 7, 2020
@stream-iori
Copy link
Contributor

stream-iori commented Jul 12, 2020 via email

@doctorpangloss
Copy link
Author

One possibility is to throw an IllegalArgumentException that is implementation specific, so that at least people don't get an extremely cryptic crash (it right now fails to deserialize an empty object)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants