chronos icon indicating copy to clipboard operation
chronos copied to clipboard

arguments field of chronos job can't be http url

Open setekhid opened this issue 8 years ago • 2 comments

related to issue #855 , more testing show me that exception is not caused by schedule time field.

below is a minimal job json, which should work but not

{  
   "name":"start-blabla-job",
   "command":"echo",
   "arguments":[  
      "--blabla-flag",
      "http://example.com/whatever",
      "--another-blabla-flag",
      "/another-non-working-argument"
   ],
   "container":{  
      "type":"DOCKER",
      "image":"alpine:3.6"
   },
   "schedule":"R1/2017-09-20T05:33:50Z/PT12H",
   "scheduleTimeZone":"UTC",
   "epsilon":"PT12H",
   "shell":false
}

you can use issue #855 's schedule time to test. the http response code is as that said. and the error log is as that said. I've tested all json field to figure this out. only the arguments "http://example.com/whatever" cause this exception. and it doesn't make sence.

setekhid avatar Sep 20 '17 06:09 setekhid

not only http url, even directory file path can't be.

setekhid avatar Sep 20 '17 06:09 setekhid

@gkleiman could you take a look at this when you have a sec?

judithpatudith avatar Sep 20 '17 19:09 judithpatudith