[SERVER-7341] Make mongorestore on Windows agnostic about directory separators (slash and backslash) Created: 12/Oct/12  Updated: 11/Jul/16  Resolved: 15/Oct/12

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: 2.3.0

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: Windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Depends
is depended on by SERVER-7339 jstests/tool/dumpfilename1.js fails o... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: Windows
Participants:

 Description   

The change to Boost::filesystem v3 causes mongorestore on Windows to see backslash directory separators instead of forward slashes. The most flexible fix is to process slash and backslash as equivalent so that mongorestore does the right thing with either separator or even a mix. It is possible that other tools would benefit from a similar change, but this ticket is just for mongorestore.



 Comments   
Comment by auto [ 15/Oct/12 ]

Author:

{u'date': u'2012-10-15T07:48:44-07:00', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-7341 Make mongorestore correclty interpret backslash as a path separator.

This affects how mongorestore converts a path into a namespace name.
Branch: master
https://github.com/mongodb/mongo/commit/498c99b00cc2f087fdd3f7321044a96af30bfb8c

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