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

I can't drop a view with two consecutives dots in the name

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 6.0.12
    • None
    • None
    • Server Triage
    • ALL
    • Hide

      You can easily create a view or a collection with a double dot in the name, then it's impossible to delete it.

      Show
      You can easily create a view or a collection with a double dot in the name, then it's impossible to delete it.

    Description

      I've accidentally named a view : "test...view". When I try to delete it now I get the following error : MongoInvalidArgumentError: Collection names cannot be empty

      I tried running the following command : db.getCollection("test..view").drop()

      I also tried to rename it but got the same error.

      But the error is still there.

      Attachments

        Activity

          People

            backlog-server-triage Backlog - Triage Team
            vincentperez91@gmail.com Vincent Perez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: