jision / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

Error produced when collection name contains _ #126

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This bug occurs in RockMongo v1.0.12.

I have collection _email. When I click on it on left sidebar, the following 
error appears in content (right) area:

There is something wrong:invoke failed: JS Error: TypeError: db[coll] has no 
properties nofile_b:0, please refresh the page to try again.

So I cannot do anything with data in this collection. It works fine only with 
collections whose names don't have character _.

Original issue reported on code.google.com by khonggiannet@gmail.com on 8 Apr 2011 at 11:13

GoogleCodeExporter commented 8 years ago
okey, we will check it later

Original comment by iwind....@gmail.com on 9 Apr 2011 at 3:44

GoogleCodeExporter commented 8 years ago
It seems be a MongoDB bug, so we changed db[_email] to db.getCollection(_email).

It fixed in r41, please check out it from svn://ifphp.cn

Original comment by iwind....@gmail.com on 9 Apr 2011 at 4:07

GoogleCodeExporter commented 8 years ago
sorry, svn address locate at svn://ifphp.cn/rockmongo

Original comment by iwind....@gmail.com on 9 Apr 2011 at 4:10