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

Nil keys break stashes #7

Open
kornypoet opened this issue Aug 27, 2013 · 1 comment
Open

Nil keys break stashes #7

kornypoet opened this issue Aug 27, 2013 · 1 comment

Comments

@kornypoet
Copy link
Contributor

The following creates a difficult situation to recover from if a key is ever nil:

require 'vayacondios-client'
client = Vayacondios::HttpClient.new(host: 'localhost', port: 9000, organization: 'hyrule')
client.set!('topic', 'id', { nil => 'accident' })
client.get('topic', 'id')
#=> {""=>"thing"}
client.set!('topic', 'id.nested', { real: 'value' })
client.get('topic', 'id.nested')
#=> nil

Discovered this by accident, and it prevents further nested use of the topic id pair.

@kornypoet
Copy link
Contributor Author

This jira claims to have solved the issue for Mongo 2.1.0, but it still persists with our current install of Mongo version 2.2.1.

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

No branches or pull requests

1 participant