[SERVER-1712] --logpath is not quoted when path contains spaces Created: 31/Aug/10  Updated: 12/Jul/16  Resolved: 24/Sep/10

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 1.6.1
Fix Version/s: 1.7.1

Type: Bug Priority: Major - P3
Reporter: Darren Kopp Assignee: Justin Dearing
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows


Operating System: Windows
Participants:

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



 Comments   
Comment by Eliot Horowitz (Inactive) [ 24/Sep/10 ]

See SERVER-1590 as well

Comment by Darren Kopp [ 24/Sep/10 ]

looks like this will probably be resolved from this commit: http://github.com/mongodb/mongo/commit/d0a3512190764f1d7bfdca741987e7a7fa0128bc

Generated at Thu Feb 08 02:57:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.