You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jens Kleine-Herzbruch (Jira)" <ji...@apache.org> on 2021/09/03 14:30:00 UTC

[jira] [Created] (CAMEL-16922) StringHelper.removeLeadingAndEndingQuotes() may cause IndexOutOfBoundsException

Jens Kleine-Herzbruch created CAMEL-16922:
---------------------------------------------

             Summary: StringHelper.removeLeadingAndEndingQuotes() may cause IndexOutOfBoundsException
                 Key: CAMEL-16922
                 URL: https://issues.apache.org/jira/browse/CAMEL-16922
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 3.11.1
            Reporter: Jens Kleine-Herzbruch


The method doesn't check whether the string passed actually contains enough characters, so calling it with the string {{'}}, for example, causes an IndexOutOfBoundsException.

This happens, for example, when you pass arguments like this as parameters to a Bean expression.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)