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

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

Comments

Projects
None yet
1 participant
@ghost

ghost commented Jul 26, 2013

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

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Jul 26, 2013

Owner

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?

Owner

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?

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost 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.

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.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost 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'

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'

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Jul 29, 2013

Owner

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).

Owner

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).

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jul 29, 2013

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

ghost commented Jul 29, 2013

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

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Jul 29, 2013

Owner

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

Owner

bobthecow commented Jul 29, 2013

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

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jul 29, 2013

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

ghost commented Jul 29, 2013

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

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Jul 29, 2013

Owner

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.

Owner

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.

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Jul 29, 2013

Owner

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

Owner

bobthecow commented Jul 29, 2013

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

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jul 29, 2013

Verified the fix in hotfix/2.3.7. Thanks

ghost commented Jul 29, 2013

Verified the fix in hotfix/2.3.7. Thanks

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Jul 29, 2013

Owner

Great. I'll get that released!

Owner

bobthecow commented Jul 29, 2013

Great. I'll get that released!

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jul 29, 2013

Feel free to close the issue

ghost commented Jul 29, 2013

Feel free to close the issue

@bobthecow bobthecow closed this in a2b7b66 Jul 29, 2013

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Jul 29, 2013

Owner

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

Owner

bobthecow commented Jul 29, 2013

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

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