Project: springxd
Issue XD-2416: SpelParseException is thrown when using empty string ("") inside of an expression
I can only reproduce this when using single quotes around the expression: {code} stream create test --definition "http | transform --expression='payload.replace(\"abc\", \"\")' | log" --deploy true {code} The following two alternatives work fine though: {code} # Using trim on a single space stream create test --definition "http | transform --expression='payload.replace(\"abc\", \" \".trim())' | log" --deploy true # Not using single quotes or spaces in the expression stream create test --definition "http | transform --expression=payload.replace(\"abc\",\"\") | log" --deploy true {code}
Story points: 1