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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 6.0.12
    • Component/s: 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.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [HELP ONLY] Backlog - Triage Team
            Reporter:
            Vincent Perez
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: