[DOCS-9543] Docs for SERVER-10777: Allow JSON Parser to support additional fields when parsing DBRefs Created: 05/Dec/16  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Emily Hall Assignee: Kay Kim (Inactive)
Resolution: Won't Do Votes: 0
Labels: community-team, dbref, json, mongoimport, parser
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-10777 Allow JSON Parser to support addition... Closed
Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

Engineering Ticket Description:

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.



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:58:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.