-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.4.4
-
Component/s: Internal Code, Tools
-
ALL
This works:
$ echo '{ "_id" : { "$oid" : "5062d20310db79406d000059" }, "parent" : { "$ref" : "box", "$id" : { "$oid" : "5062d1d810db799135000005" } } }' | mongoimport -d test -c testcoll
connected to: 127.0.0.1
Mon Sep 16 11:26:01.811 imported 1 objects
This does not:
$ echo '{ "_id" : { "$oid" : "5062d20310db79406d000059" }, "parent" : { "$ref" : "box", "$id" : { "$oid" : "5062d1d810db799135000005" }, "_doctrine_class_name" : "Box" } }' | mongoimport -d test -c testcoll connected to: 127.0.0.1 Mon Sep 16 11:26:29.705 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Expecting '}' or ',': offset:127 Mon Sep 16 11:26:29.705 Mon Sep 16 11:26:29.705 check 0 0 Mon Sep 16 11:26:29.705 imported 0 objects Mon Sep 16 11:26:29.705 ERROR: encountered 1 error(s)
Notice the extra "_doctrine_class_name" field in the DBRef.
If I use the MongoDB 2.2 mongoimport, then it works.
There's been an issue with same summary for 1.3, but with different content.
- depends on
-
SERVER-10779 JSON Parser Needs to Support the DBRef $db Field
- Closed
- is related to
-
CDRIVER-457 Allow DBRef object notation for embedded documents
- Closed
-
SERVER-12263 Support $elemMatch with DBRefs that may contain additional properties
- Closed
-
SERVER-612 Allow Arbitrary Properties on DBRefs
- Closed
- related to
-
SERVER-23786 Server allows insertion and update of invalid DBRef documents
- Backlog
-
SERVER-9790 DBRef string representation should include $db
- Closed
-
SERVER-12695 Support fields within DBRef
- Closed