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

[jira] [Created] (FLINK-9832) Allow commas in job submission query params

Ufuk Celebi created FLINK-9832:
----------------------------------

             Summary: Allow commas in job submission query params
                 Key: FLINK-9832
                 URL: https://issues.apache.org/jira/browse/FLINK-9832
             Project: Flink
          Issue Type: Bug
          Components: REST
    Affects Versions: 1.5.1
            Reporter: Ufuk Celebi


As reported on the user mailing list in the thread "Run programs w/ params including comma via REST api" [1], submitting a job with mainArgs that include a comma results in an exception.

To reproduce submit a job with the following mainArgs:
{code}
--servers 10.100.98.9:9092,10.100.98.237:9092
{code}
The request fails with
{code}
Expected only one value [--servers 10.100.98.9:9092, 10.100.98.237:9092].
{code}

As a work around, users have to use a different delimiter such as {{;}}.

The proper fix of this API would make these params part of the {{POST}} request instead of relying on query params (as noted in FLINK-9499).

[1] http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Run-programs-w-params-including-comma-via-REST-api-td19662.html



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

Re: [jira] [Created] (FLINK-9832) Allow commas in job submission query params

Posted by Will Du <wi...@gmail.com>.
A got a similar issue that single quote ‘ get removed too. See if you can reproduce.

Sent from my iPhone

> On Jul 12, 2018, at 05:33, Ufuk Celebi (JIRA) <ji...@apache.org> wrote:
> 
> Ufuk Celebi created FLINK-9832:
> ----------------------------------
> 
>             Summary: Allow commas in job submission query params
>                 Key: FLINK-9832
>                 URL: https://issues.apache.org/jira/browse/FLINK-9832
>             Project: Flink
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 1.5.1
>            Reporter: Ufuk Celebi
> 
> 
> As reported on the user mailing list in the thread "Run programs w/ params including comma via REST api" [1], submitting a job with mainArgs that include a comma results in an exception.
> 
> To reproduce submit a job with the following mainArgs:
> {code}
> --servers 10.100.98.9:9092,10.100.98.237:9092
> {code}
> The request fails with
> {code}
> Expected only one value [--servers 10.100.98.9:9092, 10.100.98.237:9092].
> {code}
> 
> As a work around, users have to use a different delimiter such as {{;}}.
> 
> The proper fix of this API would make these params part of the {{POST}} request instead of relying on query params (as noted in FLINK-9499).
> 
> [1] http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Run-programs-w-params-including-comma-via-REST-api-td19662.html
> 
> 
> 
> --
> This message was sent by Atlassian JIRA
> (v7.6.3#76005)