Project: springxd
Issue XD-1198: Shell: Job Parameters are whitespace sensitive
This works: {code} job launch helloSpringXD --params "{"myStringParameter":"foobar","secondParam":"hello"}" {code} This fails: {code} job launch helloSpringXD --params "{"myStringParameter":"foobar", "secondParam":"hello"}" {code} Notice the space between the parameters. This fails with: {code} spring> job launch helloSpringXD --params "{"myStringParameter":"foobar", "secondParam":"hello"}" 14/01/06 12:00:07 WARN client.RestTemplate: PUT request for "http://localhost:9393/jobs/helloSpringXD/launch" resulted in 500 (Internal Server Error); invoking error handler Command failed org.springframework.xd.rest.client.impl.SpringXDException: org.springframework.integration.MessageHandlingException: java.lang.IllegalArgumentException: Unable to convert provided JSON to Map {code} Internally the parameters are parsed to: {code} {"myStringParameter":"foobar",secondParam":"hello"} {code} The curly brace is missing.
Story points: 4