[SERVER-8530] Don't log twice for unauthorized operation Created: 12/Feb/13  Updated: 11/Jul/16  Resolved: 27/Feb/13

Status: Closed
Project: Core Server
Component/s: Logging, Security
Affects Version/s: None
Fix Version/s: 2.4.0-rc2

Type: Improvement Priority: Minor - P4
Reporter: Daniel Pasette (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Mon Feb 11 20:32:34.682 [conn9] assertion 16550 not authorized for query on foo.system.namespaces ns:foo.system.namespaces query:{}
Mon Feb 11 20:32:34.682 [conn9] problem detected during query over foo.system.namespaces : { $err: "not authorized for query on foo.system.namespaces", code: 16550 }



 Comments   
Comment by auto [ 27/Feb/13 ]

Author:

{u'date': u'2013-02-26T17:31:10Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-8530 Prevent redundant logging of errors during queries
Branch: master
https://github.com/mongodb/mongo/commit/46f3b3f0342f59406f69b2ed540ca6e4d6500854

Comment by Spencer Brody (Inactive) [ 21/Feb/13 ]

Looking at the code, it seems like this is not just a problem with auth, but with any error when performing a query. Offending lines are https://github.com/mongodb/mongo/blob/master/src/mongo/db/instance.cpp#L278 and 23 lines down on line 301.

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