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

--logpath is not quoted when path contains spaces

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.7.1
    • 1.6.1
    • Admin
    • None
    • windows
    • Windows

    Description

      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\""

      Attachments

        Activity

          People

            zippy1981 Justin Dearing
            darrenkopp Darren Kopp
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: