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

--logpath is not quoted when path contains spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.7.1
    • Component/s: Admin
    • Labels:
      None
    • Environment:
      windows
    • Operating System:
      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

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

              Dates

              Created:
              Updated:
              Resolved: