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

copyDatabase does not provide namespace validation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.7.6
    • Fix Version/s: 2.7.8
    • Component/s: Write Ops
    • Labels:
    • Operating System:
      ALL
    • Sprint:
      Query 2.7.8

      Description

      When an (invalid) todb argument that contains a dot is provided, copyDatabase just ignores everything that comes after the dot, and copy to the destination database instead of failing.

      e.g. something like this

      > db.copyDatabase("test", "local.whatever", "localhost")

      will return:

      { "ok" : 1 }

      and the content of tests will be copied in "local" database.

        Attachments

          Activity

            People

            Assignee:
            rassi J Rassi
            Reporter:
            davide.italiano Davide Italiano
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: