Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11427

Audit logging for action 'renameCollection' needs to match the spec

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.5.4
    • Affects Version/s: None
    • Component/s: None
    • ALL

      The spec says that bson-formatted data has format

      {source: <old-ns>, target: <new-ns>}
      

      But the data actually uses different keys:

      {original: <old-ns>, new: <new-ns>}
      

      ----------------------------------------

      Also, the renameCollection operation can fail if dropTarget is not true and the target collection already exists. No audit logging occurs in this case. It's not clear if any is necessary, since nothing happened, but other audit operations produce audit records in the case of failure so this one might.

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            bard.bloom@10gen.com bard.bloom@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: