You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Maciej Prochniak (JIRA)" <ji...@apache.org> on 2018/08/17 09:18:00 UTC

[jira] [Created] (FLINK-10165) JarRunHandler/JarRunRequestBody should allow to pass program arguments as escaped json list

Maciej Prochniak created FLINK-10165:
----------------------------------------

             Summary: JarRunHandler/JarRunRequestBody should allow to pass program arguments as escaped json list
                 Key: FLINK-10165
                 URL: https://issues.apache.org/jira/browse/FLINK-10165
             Project: Flink
          Issue Type: Improvement
          Components: REST
    Affects Versions: 1.6.0
            Reporter: Maciej Prochniak


Currently program arguments are parsed from plain string: [https://github.com/apache/flink/blob/master/flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarRunHandler.java#L106]

It doesn't allow to put quotes or new lines in arguments - in particular it's difficult to pass json as argument. I think it would be good to pass arguments as json list - then jackson would handle escaping. It'd be a bit more problematic for query string parameters... WDYT [~Zentol]?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)