[JAVA-789] Dots allowed in field names of objects in a list Created: 15/Mar/13  Updated: 28/Mar/13  Resolved: 28/Mar/13

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 2.10.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Dan Polites Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongo 2.2.3, java 1.6, mongo java driver 2.7.1, although tested with 2.10.1.


Attachments: File dotinname.groovy    
Issue Links:
Duplicate
duplicates JAVA-794 Java driver fails to detect fields wi... Closed

 Description   

I've ran into an issue where dots are allowed in object keys when the object is in a list, but not in allowed in embedded map or document key names. After further reading, I discovered that dots are not allowed in any mongo key.

This example fails using the "Try it out" browser shell on the mongo home page but works using the latest version of the java driver.
> db.test.insert({test:[

{'0.0':'test'}

]})
JS Error: can't have . in field names [0.0]

I also attached the groovy script that I used to verify that this is an issue with the latest version of the driver.



 Comments   
Comment by Jeffrey Yemin [ 28/Mar/13 ]

Resolving as duplicate of JAVA-794

Generated at Thu Feb 08 08:53:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.