[SERVER-7349] Queries with dotted notation create invalid dotted keys in system.profile Created: 14/Oct/12  Updated: 16/Oct/12  Resolved: 16/Oct/12

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 2.0.7, 2.2.0
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Stennie Steneker (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-6768 MongoDB Profiler creates illegal docu... Closed
Participants:

 Description   

Queries using dotted notation can create a query key in system.profile which includes a dot (illegal according to: http://www.mongodb.org/display/DOCS/Legal+Key+Names).

Example set up:

db.setProfilingLevel(2);
db.books.insert({protagonist: "Guy Montog", antecedents: 
  [{title: "The Fireman"}, {title: "Bright Phoenix"}]});
db.books.find({"antecedents.title": "The Fireman"})

Entry in profile collection for the query:

		{
			"ts" : ISODate("2012-10-14T01:34:07.057Z"),
			"op" : "query",
			"ns" : "dotted.books",
			"query" : {
				"antecedents.title" : "The Fireman"
			},
			"nscanned" : 2,
			"nreturned" : 2,
			"responseLength" : 286,
			"millis" : 0,
			"client" : "127.0.0.1",
			"user" : ""
		}

This makes it difficult to find profile entries for dotted queries.


Generated at Thu Feb 08 03:14:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.