[SERVER-11187] Audit system incorrectly logs index creation as collection creation. Created: 15/Oct/13  Updated: 11/Jul/16  Resolved: 15/Oct/13

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

Type: Bug Priority: Major - P3
Reporter: Andy Schwerin Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Index collections should not get "created collection" entries in the audit log.



 Comments   
Comment by auto [ 15/Oct/13 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-11187 filter out namespace names that look like indexes, in logCreateCollection
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/b9f0eaa50fc4cb49a1fb932cdefea75037fba27d

Comment by Eric Milkie [ 15/Oct/13 ]

The problem is that we are logging all namespace creation, not collection creation. I will attempt to move logCreateCollection up to a higher level.

Comment by Eric Milkie [ 15/Oct/13 ]

The problem appears to be that we are logging all namespace creation as "collection creation". Since indexes result in a new namespace being created, they get logged as such.
I will attempt to move the logCreateCollection() call to a higher level.

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