[JAVA-184] Problem with Relations to Collections with more then 2 dots in the name Created: 11/Oct/10 Updated: 29/Oct/10 Resolved: 12/Oct/10 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 2.1 |
| Fix Version/s: | 2.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Bernhard Dangl | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
It is possible to create a collection eg. with the name "this.is.a.collection". All works well when doing queries in the mongo-console and with the java-driver as well. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 12/Oct/10 ] | ||||||||||||||||||||||||||||||||||
|
Great! | ||||||||||||||||||||||||||||||||||
| Comment by Bernhard Dangl [ 12/Oct/10 ] | ||||||||||||||||||||||||||||||||||
|
ServerVersion: 1.6.2 | ||||||||||||||||||||||||||||||||||
| Comment by Eliot Horowitz (Inactive) [ 12/Oct/10 ] | ||||||||||||||||||||||||||||||||||
|
Weird. | ||||||||||||||||||||||||||||||||||
| Comment by Bernhard Dangl [ 12/Oct/10 ] | ||||||||||||||||||||||||||||||||||
|
the output of the first example: id of target: 4cb3ffc8e8b8105db3a4f988 , "_id" : { "$oid" : "4cb3ffc8e8b8105db4a4f988"}} { "$ref" : "this.is.the.target", "$id" : "4cb3ffc8e8b8105db3a4f988" }reference can't be fetched --->: null output of the second example: id of target: 4cb3ff5f1ba8105db9e1b78e , "_id" : { "$oid" : "4cb3ff5f1ba8105dbae1b78e"}} { "$ref" : "target", "$id" : "4cb3ff5f1ba8105db9e1b78e" }reference fetched --->: { "_id" : { "$oid" : "4cb3ff5f1ba8105db9e1b78e"}, "name" : "Target"} | ||||||||||||||||||||||||||||||||||
| Comment by Eliot Horowitz (Inactive) [ 12/Oct/10 ] | ||||||||||||||||||||||||||||||||||
|
When you run the first program, what do you get? | ||||||||||||||||||||||||||||||||||
| Comment by Bernhard Dangl [ 12/Oct/10 ] | ||||||||||||||||||||||||||||||||||
|
here the same program with a target collection name without dots:
this works fine. | ||||||||||||||||||||||||||||||||||
| Comment by Bernhard Dangl [ 12/Oct/10 ] | ||||||||||||||||||||||||||||||||||
|
Here an example, hope that clarifies a little bit:
| ||||||||||||||||||||||||||||||||||
| Comment by Eliot Horowitz (Inactive) [ 11/Oct/10 ] | ||||||||||||||||||||||||||||||||||
|
Can you send a full example? |