[SERVER-14842] Relative path allowed for auditPath when installing as service on windows Created: 08/Aug/14  Updated: 11/Jul/16  Resolved: 12/Aug/14

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: 2.7.4
Fix Version/s: 2.7.5

Type: Bug Priority: Minor - P4
Reporter: Andrew Emil (Inactive) Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-21615 basisTechRootDirectory option should ... Closed
related to SERVER-21614 kmip*File options should forbid relat... Backlog
is related to SERVER-13463 Relative path in config file for mong... Closed
Operating System: Windows
Steps To Reproduce:

Use the following config along with --install on 2.7.3 enterprise

logpath = D:\mongo.log
dbpath = D:\db
auditDestination = file
auditFormat = JSON
auditPath = .\auditpath

Sprint: Server 2.7.5
Participants:

 Description   

Users can set a relative path for the auditPath option when installing mongodb as a service on windows. Relative paths should not be allowed according to SERVER-13463



 Comments   
Comment by Githook User [ 12/Aug/14 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-14842: Disallow relative path for auditPath & Windows Service

Windows Services have a different working directory at runtime than when MongoDB
is installed. This change enforces that users specify full paths at install time
to avoid failures. A similar change was already made for main repo,
the enterprise repo was simply missed.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/460d87a8f0067fff6b9035713d1c57cbfe4d631b

Generated at Thu Feb 08 03:36:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.