nicolaferraro opened a new issue #632: URL: https://github.com/apache/camel-k-runtime/issues/632
There are multiple cases where I want to escape a specific parameter. But "escaping", depending on the context, could mean different things. Suppose I've a Kamelet with a `param`. If the `param` represents an ID in a rest resource, I could use it as: ```yaml - tod: "https://api.com/users/{{param}}/details" ``` If I pass `luca` it works. If I pass `luca/tokens?` I did an injection attack. Here I'd like to URL encode the param as URL path segment. In another case, I need to analyze the output of a service to call another one, so I use JSONpath: ``` - to: https://api.com/endpoint - transform: jsonpath: "$.value[?(@.lastName == '{{param}}')]" ``` If I pass `Burgazzoli` it works. If I pass `O'Neil` then the whole integration crashes because of invalid JSONpath expression. How can we solve thes issues? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
