Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16922

StringHelper.removeLeadingAndEndingQuotes() may cause IndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.11.1
    • 3.7.6, 3.11.2, 3.12.0
    • camel-core
    • None
    • Unknown

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jensgr@gmx.net Jens Kleine-Herzbruch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: