Claus Ibsen created CAMEL-25121:
-----------------------------------

             Summary: camel-util - StringQuoteHelper.splitSafeQuote trims the 
spaces inside a quoted value unless it is the last value
                 Key: CAMEL-25121
                 URL: https://issues.apache.org/jira/browse/CAMEL-25121
             Project: Camel
          Issue Type: Bug
          Components: camel-core
            Reporter: Claus Ibsen


StringQuoteHelper.splitSafeQuote with trim=true keeps the spaces inside a 
quoted value when it is the only or the last value, but trims them when a 
separator follows. For example splitSafeQuote("' a ', ' b '", ',', true, false) 
gives ["a", " b "].

This affects the simple functions that take a list of values (such as list), 
the arguments of camel-exec and the values of camel-sql IN queries.

Trim only the text outside the quotes, for every value.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to