spring-cloud / spring-cloud-dataflow-samples

Sample starter applications and code for use with the Spring Cloud Data Flow project
http://cloud.spring.io/spring-cloud-dataflow/
220 stars 203 forks source link

polyglot-python-task/util/task_args url arguments parse fail with url's #147

Closed michelekorell closed 2 years ago

michelekorell commented 2 years ago

https://github.com/spring-cloud/spring-cloud-dataflow-samples/blob/1dad5f5f1de17c26b5a24d03d03e4c9047e74ecf/dataflow-website/recipes/polyglot/polyglot-python-task/util/task_args.py#L16

Hello,

The use of split('=') generate an array with three arguments in case we pass a url completed by query params.

Example: --spring.datasource.url=jdbc:postgresql://pgdb:5432/MY_DB?currentSchema=scdf_admin

I fixed it in my code with:

a.split('=', 1) for a in sys.argv[1:]

I go to perform the pull request to fix it.

Bests regards!