[SERVER-26975] Feild name null values Created: 10/Nov/16  Updated: 19/Nov/16  Resolved: 19/Nov/16

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: guru rajan Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

According to Feild name restrictions , null are not allowed but how come the below values are inserted, you can also validate this

> db.test.find();
{ "_id" : ObjectId("5824191e99ec5f9dcc61710b"), "null" : 1 }
{ "_id" : ObjectId("5824193599ec5f9dcc61710c"), " " : 1 }
{ "_id" : ObjectId("5824194c99ec5f9dcc61710d"), " " : 1 }

https://docs.mongodb.com/manual/core/document/#field-names



 Comments   
Comment by Kelsey Schubert [ 19/Nov/16 ]

Hi guruskec@gmail.com,

Thanks for your report. The field names in your examples are strings, and are not considered null values.

Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-users group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group. If you choose to post on the mongodb-users group, I would suggest including which drivers you are using and an example of the insertion command.

Kind regards,
Thomas

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