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

Unable to modify/delete documents when _id is not an ObjectId #126

Closed
ghost opened this issue Jul 26, 2013 · 13 comments
Closed

Unable to modify/delete documents when _id is not an ObjectId #126

ghost opened this issue Jul 26, 2013 · 13 comments

Comments

@ghost
Copy link

@ghost ghost commented Jul 26, 2013

I use documented keyed used ints and genghis is unable to operate correctly in that situation.

@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Jul 26, 2013

It works for me :)

Can you give me more information? Which Genghis version and backend are you running? What OS, OS version, Mongo version, Mongo driver version, etc?

Loading

@ghost
Copy link
Author

@ghost ghost commented Jul 26, 2013

Mac OS X 10.8.4
Mongo 2.4.5

I'm updating genghisapp now, so I no longer have the old version number. Sorry about that.

Loading

@ghost
Copy link
Author

@ghost ghost commented Jul 26, 2013

I have this document:
{
_id: 0,
shard: 0,
schemaVersion: 0
}

Collection index is:
[
{
"v": 1,
"key": {
"_id": 1
},
"ns": "dbname.users",
"name": "id"
}
]

Modifying produces the following error in the latest genghisapp 2.3.6:
Document '~MA==' not found in 'users'

Loading

@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Jul 29, 2013

I am unable to reproduce this. Can you give me more information?

Are you using the Ruby or PHP backend? What Ruby or PHP version are you using? How are you running Genghis? (behind Apache, nginx, standalone, etc).

Loading

@ghost
Copy link
Author

@ghost ghost commented Jul 29, 2013

Ruby backend, installed via gem.
Running via "genghisapp" in the terminal

Loading

@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Jul 29, 2013

What Ruby version are you running? Is it the system installed Ruby, or something like RVM or rbenv?

Loading

@ghost
Copy link
Author

@ghost ghost commented Jul 29, 2013

ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
rubygems 2.0.5

Loading

@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Jul 29, 2013

That helps. Something's probably not right in Ruby 1.8.x. I was trying in 1.9.x and 2.0. I'll take a look.

Loading

@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Jul 29, 2013

This should be fixed in the hotfix/2.3.7 branch. Do you mind checking it out?

Loading

@ghost
Copy link
Author

@ghost ghost commented Jul 29, 2013

Verified the fix in hotfix/2.3.7. Thanks

Loading

@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Jul 29, 2013

Great. I'll get that released!

Loading

@ghost
Copy link
Author

@ghost ghost commented Jul 29, 2013

Feel free to close the issue

Loading

@bobthecow bobthecow closed this in a2b7b66 Jul 29, 2013
@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Jul 29, 2013

And it's released. Thanks again for the bug report.

Loading

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

Successfully merging a pull request may close this issue.

None yet
1 participant