You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Daniel Pravat (JIRA)" <ji...@apache.org> on 2016/05/19 23:03:12 UTC
[jira] [Created] (MESOS-5418) Escape containerizer command line on
Windows
Daniel Pravat created MESOS-5418:
------------------------------------
Summary: Escape containerizer command line on Windows
Key: MESOS-5418
URL: https://issues.apache.org/jira/browse/MESOS-5418
Project: Mesos
Issue Type: Improvement
Environment: Windows
Reporter: Daniel Pravat
The json command sent to the containerizer is malformed if the double quotes characters are not escaped on Windows. The code should be extracted in a separate function and a test case should be added.
Tha command line show be similar to the following:
CmdLine: mesos-containerizer.exe launch --command={\"environment\":{\"variables\":[{\"name\":\"MARATHON_APP_VERSION\",\"value\":\"2016-05-17T19:01:41.164Z\"}
,{\"name\":\"HOST\",\"value\":\"10.6.0.4\"},{\"name\":\"MARATHON_APP_RESOURCE_CPUS\",\"value\":\"0.1\"},{\"name\":\"PORT_10001\",\"value\":\"31090\"},{\"name\":
\"MESOS_TASK_ID\",\"value\":\"2.b1ab4785-1e14-11e6-8677-000d3a3000b0\"},{\"name\":\"PORT\",\"value\":\"31090\"},{\"name\":\"MARATHON_APP_RESOURCE_MEM\",\"value\
":\"128.0\"},{\"name\":\"PORTS\",\"value\":\"31090\"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)