[SERVER-15517] Spaces in command line arguments to golang tools break parsing on windows Created: 02/Oct/14 Updated: 11/Jul/16 Resolved: 10/Oct/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | None |
| Fix Version/s: | 2.7.8 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | sam.helman@10gen.com | Assignee: | sam.helman@10gen.com |
| Resolution: | Done | Votes: | 0 |
| Labels: | pull-request | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
See http://buildlogs.mongodb.org/MCI_windows-64-2k8/builds/111407/test/tool_0/dumprestore7.js The spaces in the value passed to the --query argument to the tools are breaking command-line parsing. This is probably because of an escaping issue on windows where
becomes
when it is read in by golang's flag parsing library. |
| Comments |
| Comment by Githook User [ 10/Oct/14 ] |
|
Author: {u'username': u'shelman', u'name': u'Sam Helman', u'email': u'sam.helman@10gen.com'}Message: Closes #823 Signed-off-by: Benety Goh <benety@mongodb.com> |
| Comment by sam.helman@10gen.com [ 09/Oct/14 ] |
|
Looks like the issue is that the shell's subprocess launcher is escaping double quotes in the command line args as "" rather than \". This breaks golang's parsing of command line arguments on windows. |
| Comment by Githook User [ 07/Oct/14 ] |
|
Author: {u'username': u'shelman', u'name': u'Sam Helman', u'email': u'sam.helman@10gen.com'}Message: Closes #806 Signed-off-by: Benety Goh <benety@mongodb.com> |