--logpath is not quoted when path contains spaces

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.1
    • Affects Version/s: 1.6.1
    • Component/s: Admin
    • None
    • Environment:
      windows
    • Windows
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When the log path directory contains spaces and you install the service like so:

      mongod.exe --install --logpath "c:\my path\has spaces\in it\log.log" --dbpath "c:\my path\has spaces\also in it\"

      Then it installs fine, but the service cannot be started. When you look at the service properties, the executable path looks like so:

      "c:\my path\has spaces\in it\mongod.exe" --service --logpath c:\my path\has spaces\in it\log.log --dbpath "c:\my path\has spaces\also in it\""

            Assignee:
            Justin Dearing
            Reporter:
            Darren Kopp
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: