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

camel-cxf - Remove convert from String -> List that assume its classes

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.10.0
    • camel-cxf
    • None
    • Unknown

    Description

      In CxfConverter we have 2 type converters that does a

      • String -> List
      • String[] -> List

      And it assumes the string is a class name.

      This is really bad, as its too generic, eg String -> List. As the string can contain anything. And when adding camel-cxf to your application, you get these type converters added, that can cause side effects elsewhere.

      For now this has not surfaced, as the type converter would ignore exceptions, but frankly when the type converter was used, it will use Apache CXF to load classes, on each attempt, which of couse is not desirable.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment