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

--logpath is not quoted when path contains spaces

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

      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:
            zippy1981 Justin Dearing
            Reporter:
            darrenkopp Darren Kopp
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: