Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Namespaced collection names #56

Closed
heruan opened this issue Nov 14, 2012 · 3 comments
Closed

Namespaced collection names #56

heruan opened this issue Nov 14, 2012 · 3 comments
Labels

Comments

@heruan
Copy link

heruan commented Nov 14, 2012

I have collection names organized in namespaces using dot-notation (as suggested in MongoDB documentation). For example, a collection could be named My.Users.Employees. When using dotted names, actions like deleting a collection in Genghis fail (e.g. when Genghis asks to explicitly write the collection's name to confirm deletion, it doesn't work). It may be just a JavaScript issue, I'm not sure.
A similar behaviour happens when collection names have a backslash character in them (e.g. My\Users\Employees, in PHP namespace notation).

@bobthecow
Copy link
Owner

Thanks for reporting this, I'll take a look.

bobthecow added a commit that referenced this issue Nov 15, 2012
Add API tests for non-standard collection name characters. The PHP backend currently fails for forward slashes in collection names, but passes everything else.

See #56
@bobthecow
Copy link
Owner

I just created a failing test case for this problem. The Ruby backend was fine, but the PHP backend needed help. The test and a fix for PHP are in develop. Note that I haven't fixed forward slashes in collection names yet, but it works for all sorts of other crazy characters now. Feel free to use the develop branch version and let me know if you have any other problems. Otherwise, it'll be in the next release.

@bobthecow
Copy link
Owner

Ha! My test case was wrong, forward slashes in URLs works just fine :)

|'m closing this issue, as v2.1.5 was just released. Thanks again for the bug report.

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

No branches or pull requests

2 participants