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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 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.

      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:
            backlog-server-triage [HELP ONLY] Backlog - Triage Team
            Reporter:
            vincentperez91@gmail.com Vincent Perez
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: